How not to copy an Array

BlitzMax Forums/BlitzMax Beginners Area/How not to copy an 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.

On the slicing: You can clone the whole array far easier:

local a2:int[] = a1[..]


But your point on that is right. As an array is a type inherited from :Object, assigning it to something only changes the reference of the array, not its content.