2D jagged arrays?

BlitzMax Forums/BlitzMax Beginners Area/2D jagged arrays?

monotonic(Posted 2009) [#1]
Is it possible to create a 2D jagged array in bm? For instance, a bit of pseudo-ish code

local arr:myobj[][4]
arr[0] = myobj[]( mylist1.ToArray( ) )
...
arr[3] = myobj[]( mylist4.ToArray( ) )


so basically I want an array with a fixed length first dimension and different length second dimension.

It's ok I got it, the above code works.


Who was John Galt?(Posted 2009) [#2]
Kind of. An array of arrays will give you this functionality.


monotonic(Posted 2009) [#3]
Posted at the same time, yeah I figured it out cheers mate.