• 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 vs copy?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: set vs copy?


  • Subject: Re: set vs copy?
  • From: Shane Stanley <email@hidden>
  • Date: Wed, 15 Sep 2010 17:06:28 +1000
  • Thread-topic: set vs copy?

On 15/9/10 4:51 PM, "Thomas Fischer" <email@hidden> wrote:

> set A to {1, 2, 3}

So A points to a bit of memory that holds the list {1, 2, 3}

> set B to A

B points to the same bit of memory as A

> copy A to C

What A points to is duplicated, and C points to this new list

> set A to {6, 7, 8}

A now points to a new bit of memory holding {6, 7, 8}. This doesn't affect
what A or C are pointing at.


--
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

  • Follow-Ups:
    • Re: set vs copy?
      • From: Thomas Fischer <email@hidden>
References: 
 >Re: set vs copy? (From: Thomas Fischer <email@hidden>)

  • Prev by Date: Re: I need to allow a web page to fully load before saving it with my script
  • Next by Date: Re: set vs copy?
  • Previous by thread: Re: set vs copy?
  • Next by thread: Re: set vs copy?
  • Index(es):
    • Date
    • Thread