Re: list question
Re: list question
- Subject: Re: list question
- From: Michelle Steiner <email@hidden>
- Date: Tue, 3 Jun 2003 11:00:30 -0700
On Tuesday, June 3, 2003, at 09:02 AM, dialup wrote:
set a to {"a", 1}
set b to a
set a's item 1 to "b"
return b
--> {"b", 1}
------------
but shouldn't b be {"a",1}?
No, you've run into the difference between "set" and copy.
set a to {"a", 1}
copy a to b
set a's item 1 to "b"
return b
--> {"a", 1}
See "Data Sharing" on page 206 of the Applescript Language Guide.
--Michelle
--
George Bush == Timothy McVeigh == Saddam Hussein
_______________________________________________
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.