• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: set myList to myList & ... and unexpected results
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: set myList to myList & ... and unexpected results (From: has <email@hidden>)

  • Prev by Date: Re: My first question, please be gentle (stack overflow)
  • Next by Date: Re: Mount a Firewire disk
  • Previous by thread: Re: set myList to myList & ... and unexpected results
  • Next by thread: Re: set myList to myList & ... and unexpected results
  • Index(es):
    • Date
    • Thread