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

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.

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>)

  • Prev by Date: Re: What is wrong with this script?
  • Next by Date: Re: Coerce time
  • Previous by thread: Re: abs bug?
  • Next by thread: Re: abs bug?
  • Index(es):
    • Date
    • Thread