Arrays in User-Types

BlitzMax Forums/BlitzMax Programming/Arrays in User-Types

Seems like BlitzMax works just like C++ in terms of constructing these arrays (assuming your arrays were arrays of pointers). I think this is a reasonable approach for BlitzMax.

In general, allocating the memory for you could be bad because the User Type might require construction arguments, or the size of the array might need to be dynamic, or you might want to carefully control when this memory is actually allocated.

I can understand wanting to have automatic allocation, but given that User Types are stored by pointer not by value, I think BlitzMax is doing the best it can. That may not change your opinion of it though :-)

Ken