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

Constant in array declaration

1 replies · 958 views · Started 13 February 2010

I know I'm probably going to get a post-2.5 on this one, but thinking about it wouldn't it not be that hard to write it like the find-replace tool like a pre-parser sorta thing, once the script is loaded into the buffer and before parsing?

Yeah, we also can't assign negative numbers to arrays, initialize arrays as arguments, or pass a const string as an argument. ..Or more importantly, get the stack pointer to to an array in the code. ..Actually... I'd like to overhaul arrays completely so that they are much faster, and can do the aforementioned efficiently, and maybe even use less memory.

Good points on all of them. Just bad timing.