Array declaration

BlitzMax Forums/BlitzMax Programming/Array declaration

Who was John Galt?(Posted 2006) [#1]
Local bit_arr:Byte[]=New Byte[100]

compiles.

bit_arr:Byte[]=New Byte[100]

doesn't. It would be nice if it could just assume a local as it does with other variable types.


skidracer(Posted 2006) [#2]
Moved from bug reports, please do not post requests in bug reports.

The documentation suggests nothing to support the false assumptions you are making about declaration of Arrays in non strict mode.


Who was John Galt?(Posted 2006) [#3]
Hey skids didn't want to get anyones back up... just thought it was an inconsistency.


H&K(Posted 2006) [#4]
@Nomen,
I ran it when you posted it, And I thought it was a bug as well. But hoh um


SebHoll(Posted 2006) [#5]
To be honest, I also think it's a bug... Merely because it appears as an inconsistent with other declaration defaults in Non-Strict mode.

But I always use SuperStrict anyway, so nevermind.


Who was John Galt?(Posted 2006) [#6]
Thanks for the vote of agreement gents... and it's NOMEN by the way ; )