• 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: Re: Dates gone wild [correction]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re: Dates gone wild [correction]


  • Subject: Re: Re: Dates gone wild [correction]
  • From: Helmut Fuchs <email@hidden>
  • Date: Wed, 10 Sep 2003 01:37:28 +0200

At 0:15 Uhr +0200 10.09.2003, Axel Luttgens wrote:
Strings are not liable to data sharing:

set x to "abcdefg"
set y to x
set x to "hijklmn"
x
--> "hijklmn"
y
--> "abcdefg"
Sorry to say so - but your example doesn't prove anything. If strings are data shared can't be shown from an AppleScript perspective, because strings are immutable values/objects.

You can't set any part of a string. Strings (like numerics) can only be altered through assignment. If you could, then you'd see that strings as well are data shared.

But in your example you are assigning a new string value to x, rendering it pointless. [Shouldn't be posting in the middle of the night - the last value assigned to is the x, not the y]

Regards,

Helmut
_______________________________________________
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: Dates gone wild
      • From: Chris Page <email@hidden>
  • Prev by Date: Re: Re: Dates gone wild
  • Next by Date: Re: Facespan 4.0 in public beta
  • Previous by thread: Re: checking for characters
  • Next by thread: Re: Dates gone wild
  • Index(es):
    • Date
    • Thread