Re: set vs copy?
Re: set vs copy?
- Subject: Re: set vs copy?
- From: Shane Stanley <email@hidden>
- Date: Wed, 15 Sep 2010 17:06:28 +1000
- Thread-topic: set vs copy?
On 15/9/10 4:51 PM, "Thomas Fischer" <email@hidden> wrote:
> set A to {1, 2, 3}
So A points to a bit of memory that holds the list {1, 2, 3}
> set B to A
B points to the same bit of memory as A
> copy A to C
What A points to is duplicated, and C points to this new list
> set A to {6, 7, 8}
A now points to a new bit of memory holding {6, 7, 8}. This doesn't affect
what A or C are pointing at.
--
Shane Stanley <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden