Read-only archive of the Armageddon Games Forums Archive (2000–2026) · About this archive

[ZScript] Problem with importing, and global constants

1 replies · 1,252 views · Started 30 November 2007

Simply put, this ZScript file:

import "std.zh"

const int X = CF_BOMB;

...will not compile!

(Should it?)

Not currently:


ConstDecl : CONST FLOAT IDENTIFIER ASSIGN NUMBER SEMICOLON

Updating the grammar to allow for more flexible consts would definitely be useful, but probably should wait to post-2.50.