[chuck-users] arrays holding arrays?
spencer.salazar at gmail.com
Fri Aug 4 16:15:32 EDT 2006
On Aug 4, 2006, at 4:02 PM, Kassen wrote:
> Which I expected to recall my last stored version of the array but
> in fact it doesn't; this seems to keep "array" identical to what it
> I believe this to be because I think I'm creating a link between
> the array and a section of memory while what I'd like to do is copy
> data from the array to the "memory" where I'd like it to stay the
> same untill I tell it to change.
Thats the joy/pain of references...
> So... Now what? Copy all numbers one by one? perhaps there is some
> special syntax or way of unlinking the reference while keeping the
Copy one by one is the only way to go, as painful as that sounds.
This makes a good case for a copy() method in array classes.
> Hope this is at least somewhat clear?
> chuck-users mailing list
> chuck-users at lists.cs.princeton.edu
More information about the chuck-users