Re: set vs copy?
Re: set vs copy?
- Subject: Re: set vs copy?
- From: Shane Stanley <email@hidden>
- Date: Wed, 15 Sep 2010 09:30:40 +1000
- Thread-topic: set vs copy?
On 15/9/10 9:05 AM, "Bruce Robertson" <email@hidden> wrote:
> I tried to create an example but it didn't work. Maybe you can provide a
> variation that does illustrate the difference?
>
> Set A to "A"
> Set B to A
> Copy A to C
> Set A to "B"
> {B, C}
Let's look at your example:
Set A to "A"
Set B to A -- so B now points to the "A" that A points to
Copy A to C -- so C has its own copy of the "A" elsewhere
Set A to "B" -- A is reassigned a new value (*not* modified), so it now
points to a new "B" (but B still points to the old "A" as before)
--
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