Local number:Int[,]

BlitzMax Forums/BlitzMax Beginners Area/Local number:Int[,]

Yue(Posted 2016) [#1]
Local number:Int[,] = [(0),(1)]


No work. Help me.


Midimaster(Posted 2016) [#2]
What do you want to do?

a single dimension array with 2 elements:
Local number:INT[]=[0,1]


a 2-dimensional array with 12 (zero) elements:
Local number:INT[,]= New INT [3,4]


(thanks grable for correction)


grable(Posted 2016) [#3]
There is only array literals for 1D arrays sadly.

And the code below isnt correct, i would say its a bug as it manages to create an invalid object.
New [3,4]
EDIT: Maybe this is what you meant Midimaster?
Local a:Int[,] = New Int[3,4]
Normally one can use New on object instances to create a new object of that type, but apparently not on array instances..


Yue(Posted 2016) [#4]
Ok, no problem.
local numbers:int[][] = [[1,2,3], [1,2,3]]



Hardcoal(Posted 2016) [#5]
Blitzmax is an amazing language..
Never stop to surprise me