07-19-2010, 06:53 PM
britlion Wrote:I'm trying to make an array of sprite pointers.The compiler does not currently support this. Sorry. It's constant, as you say, but hard to know in compiler-time. Think of how will you code this array in asm:
The compiler doesn't seem to like
Code:DIM Sprites(5) AS uInteger => {@sprite1,@sprite2,@sprite3,@sprite4,@sprite5,@sprite6}
And I'm not quite sure why. It reports the error: Initializer expression is not constant. - and I beg to differ. I thought @label WAS a constant?
Code:
__Sprites:
...
...
Db _sprite1????