Memory Saving...?

BlitzMax Forums/BlitzMax Programming/Memory Saving...?

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.

Function calls with objects and object assignment in BMax is pass by reference, so basically you are using a sort of "pointer" in the assignment above (i.e. newobject.sprites will now reference the exact same object as holderobject.sprites)

The only time data is copied in an assignment or function call is when the object is a string (a new string is created) or the parameter or object in question is one of the built-in types (ints and floats are copied, for instance).