Declaring Arrays in superstrict mode

BlitzMax Forums/BlitzMax Beginners Area/Declaring Arrays in superstrict mode

Ant(Posted 2006) [#1]
Aargh! How can I declare an array of 5 integers and fill the array at the same time?

Local xOffset:Int[5]=[ 0, 0, 0, -1, 1 ]

Surely I can declare the array and fill it at the same time while in superstrict mode? I must be developing code blindness or something as I cant see whats wrong!
Thanks for any help!


Diablo(Posted 2006) [#2]
dont put the 5 in there.

Local xOffset:Int[]=[ 0, 0, 0, -1, 1 ]


Ant(Posted 2006) [#3]
Dear lord, I must have tried every variation except that one. Thanks!