Re: by-value vs by reference (was Re: list question)
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.