Re: set vs copy?
Re: set vs copy?
- Subject: Re: set vs copy?
- From: Shane Stanley <email@hidden>
- Date: Wed, 15 Sep 2010 21:36:20 +1000
- Thread-topic: set vs copy?
On 15/9/10 6:38 PM, "Thomas Fischer" <email@hidden> wrote:
> Yes, my only question is how do you know which is which?
> That
> set A to A & 4
> and
> set end of A to 4
> are different things seems to me to be an implementation issue, which I can
> only find by testing.
If the statement says "set x to ...", it's an assignment. Other forms --
"set end of x to ..." or "set item n of x to ..." -- modify.
> There is a vague hint on ASLG p.94:
It's less vague on page 28:
> Whether you can add elements to or remove elements from an object depends on
> the class and the element. For example, a text object is immutable‹you cannot
> add or remove text once the object is created. For a list object, you cannot
> remove items, but you can use the set command to add an item to the beginning
> or end:
--
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