Re: set myList to myList & ... and unexpected results
Re: set myList to myList & ... and unexpected results
- Subject: Re: set myList to myList & ... and unexpected results
- From: Emmanuel <email@hidden>
- Date: Mon, 25 Jul 2005 21:44:38 +0200
At 4:37 PM +0100 7/25/05, has wrote:
Michael Sullivan wrote:
>>>It's a bug, file a report. The first concatenation returns the right-hand
>
This isn't a bug, it's a feature :)
No, you've misread the problem. This has nothing to do with set vs
copy. It's about the concatenation operator not returning a new
object in certain situations. Example:
set l to {1}
set a to l & {}
set b to {} & l
set c to {0} & l
set l's item 1 to 2
log a --> {1}
log b --> {2} -- Wrong! Should be {1}
log c --> {0, 1}
I vote "bug". Category: "big"
(Thanks has for clearing up the matter.)
Emmanuel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden