Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: abs bug?



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.

References: 
 >abs bug? (From: Robert Poland <email@hidden>)
 >Re: abs bug? (From: Chris Garaffa <email@hidden>)
 >Re: abs bug? (From: Robert Poland <email@hidden>)
 >Re: abs bug? (From: Bill Briggs <email@hidden>)
 >Re: abs bug? (From: Michelle Steiner <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.