Is this a valid way to create an array?

BlitzMax Forums/BlitzMax Programming/Is this a valid way to create an array?

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.

Brucey: In that case it won't be slow. Its a different thing to what you refer to (initializing an array with actual values like int arr[] = [1,2,3] which is slow as this internally fires slicing from what it seems and from its speed I would say three times ...). What above does is initialize a 3 dimensional array. The only way to do it dynamically and normally no problem. (beside the fact that [][][] would be sliceable while above isn't)


GA: Whats the bug?
Did he/she try to access the array Blitz3D like? ie 0-number of elements? Although the error somehow looks more like an array -> TList -> indexed access error if it is bound to an array