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

Re: Re: Dates gone wild


  • Subject: Re: Re: Dates gone wild
  • From: Helmut Fuchs <email@hidden>
  • Date: Wed, 10 Sep 2003 01:33:15 +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 y, rendering it pointless.

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.

References: 
 >Re: Dates gone wild (From: Nigel Garvey <email@hidden>)
 >Re: Dates gone wild (From: Doug McNutt <email@hidden>)
 >Re: Dates gone wild (From: Axel Luttgens <email@hidden>)

  • Prev by Date: Re: lots of statements after "then" of "if"
  • Next by Date: Re: Re: Dates gone wild [correction]
  • Previous by thread: Re: Dates gone wild
  • Next by thread: Re: Dates gone wild
  • Index(es):
    • Date
    • Thread