Adress from array

BlitzMax Forums/BlitzMax Programming/Adress from 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.

This will only work with simple datatypes, of course, as BlitzMax does not store object arrays in contiguous memory. It stores only pointers to those objects in the array and the objects elsewhere. Which makes sense being that types are always passed by reference, never by value, but I just thought it might be worth pointing out in case someone spots this thread and assumes object arrays work the same way.