Re: abs bug?
Re: abs bug?
- Subject: Re: abs bug?
- From: Christopher Nebel <email@hidden>
- Date: Sun, 30 Nov 2003 16:46:20 -0800
On Nov 29, 2003, at 2:06 PM, Michelle Steiner wrote:
On Nov 29, 2003, at 10:40 AM, Bill Briggs wrote:
When you write "abs x" the result of that evaluation is put in a
variable called "result", and that's what would display in the result
window if you left out the last line. You didn't reassign the
contents of "x", so it will still be -4.
In other words, the variable is passed by value, not by reference.
Pass-by-whatever doesn't make a difference in this case -- even if the
parameter were passed by reference, "abs" would still have to be
defined differently in order to change x, i.e., taking a reference to a
real, not just a real.
--Chris Nebel
AppleScript Engineering
_______________________________________________
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.