Arrays in User-Types

BlitzMax Forums/BlitzMax Programming/Arrays in User-Types

To Grover:

BlitzMax types are like C++ classes if (as I mentioned in my post) you contain by pointers rather than by value. To show your example:

In C++:
struct Point2 { int x,y; };
struct Box2D { Point2 *tl, *br;};

Now it works like BlitzMax (you have to new tl and br). That was the point I was trying to make. I think there are great reasons to build systems like this. It might have been nice if BlitzMax supported containment by value, but it still is powerful, works much like other OO languages, and gives you precise control.

Ken