Passing and returning arrays

BlitzMax Forums/BlitzMax Programming/Passing and returning arrays


...because the original myarray is now being overwritten


Blitzmax handles arrays as special objects from what I understand. You aren't really 'overwriting' it technically. You're just changing what myarray points to. So the original array no longer has a reference to it...and therefore gets garbage collected.