Re: by-value vs by reference (was Re: list question)
Re: by-value vs by reference (was Re: list question)
- Subject: Re: by-value vs by reference (was Re: list question)
- From: John Baltutis <email@hidden>
- Date: Thu, 5 Jun 2003 23:53:13 -0700
Ignore my previous. I was premature (didn't read the entire message).
On 6/5/03, Andrew <email@hidden> wrote, among other things:
>
>
set y to 5 -- creates a new number with the value of 5
>
set x to y -- sets X to the same number as y
>
set the value of y to 6 -- set the number to 6
Sorry, this returns an AppleScript error: Can't set value of 5 to 6.
set y to 5 -- creates a new number with the value of 5
set x to y -- sets x to the the value of 5
set y to y + 1 -- sets y to the the value of 6 AND doesn't do a thing to x
return {x, y}
->{5, 6}
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.