• 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 09:30:40 +1000
  • Thread-topic: set vs copy?

On 15/9/10 9:05 AM, "Bruce Robertson" <email@hidden> wrote:

> I tried to create an example but it didn't work. Maybe you can provide a
> variation that does illustrate the difference?
>
> Set A to "A"
> Set B to A
> Copy A to C
> Set A to "B"
> {B, C}

Let's look at your example:

Set A to "A"
Set B to A -- so B now points to the "A" that A points to
Copy A to C -- so C has its own copy of the "A" elsewhere
Set A to "B" -- A is reassigned a new value (*not* modified), so it now
points to a new "B" (but B still points to the old "A" as before)



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

References: 
 >Re: set vs copy? (From: Bruce Robertson <email@hidden>)

  • Prev by Date: Re: set vs copy?
  • 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