• 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: by-value vs by reference (was Re: list question)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: by-value vs by reference (was Re: list question)


  • Subject: Re: by-value vs by reference (was Re: list question)
  • From: julifos <email@hidden>
  • Date: Fri, 06 Jun 2003 11:08:11 +0200

>> Just for fun I tried your imaginary Applescript.. I would like to nominate
>> the
>> error message for an obfuscated Applescript contest:
>>
>> set a to 3
>> set b to a
>> set c to a + b
>> c
>> --> 6
>> set the value of a to 4
>> set c to a + b
>> c
>> --> can't set value of 3 to 4
>
> That's actually because 'value' has no meaning in this context: it is some
> sort of AppleScript keyword (probably a property of some class or other) but
> can't be used with integers. Why are you using 'value'?

If I remove Appearance OSAX from my scriptingadditions folder, "value" is
compiled as a variable (just a note ;-)

JJ
_______________________________________________
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: by-value vs by reference (was Re: list question)
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: Locations of Desktop icons
  • Next by Date: Re: Strange Bottleneck
  • Previous by thread: Re: by-value vs by reference (was Re: list question)
  • Next by thread: Re: by-value vs by reference (was Re: list question)
  • Index(es):
    • Date
    • Thread