• 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: list question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: list question


  • Subject: Re: list question
  • From: Michelle Steiner <email@hidden>
  • Date: Tue, 3 Jun 2003 19:18:06 -0700

On Tuesday, June 3, 2003, at 07:03 PM, Chris Page wrote:

What you did was bind the variable 'a' to a new string created by concatenating "A" -- the string 'a' was initially bound to -- and "B".

set a to "A"
set original_a to a
set a to a & "B"
{a, original_a}
--> {"AB", "A"}

What you're seeing is 'a' being bound to a new value. Nothing is being mutated.

Well, to the scripter and especially to the user, it appears that the variable a is being changed (mutable means changeable) from "A" to "AB".

--Michelle

--
Never play strip Tarot.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: list question
      • From: Chris Page <email@hidden>
    • Re: list question
      • From: Jon Pugh <email@hidden>
    • Re: list question
      • From: Paul Berkowitz <email@hidden>
References: 
 >Re: list question (From: Chris Page <email@hidden>)

  • Prev by Date: Re: list question
  • Next by Date: Re: list question
  • Previous by thread: Re: list question
  • Next by thread: Re: list question
  • Index(es):
    • Date
    • Thread