Playing with 'new' identifier and pointers.

BlitzMax Forums/BlitzMax Programming/Playing with 'new' identifier and pointers.

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

And I cannot create an array of variables of type 'T'.


Yes you can! Objects are always passed by reference in BlitzMAX, so just declare a two dimensional array like so:

Local myArray:T[firstDimensionSize,secondDimensionSize]


This means "create a new two dimension array of references to T objects".