Re: My operator can beat up your operator.
Re: My operator can beat up your operator.
- Subject: Re: My operator can beat up your operator.
- From: Emmanuel <email@hidden>
- Date: Mon, 12 May 2003 23:54:19 +0200
At 1:34 PM -0700 12/05/03, Christopher Nebel wrote:
>
AppleScript does *not* follow this rule: it considers negation to be a separate operator with higher precedence than exponentiation, so -3^2 comes out to 9, not -9. Some other systems, notably Excel, do this.
>
>
There is a bug filed on this.
What you will do will be well done, Christopher, but I would hardly call that a bug:
1. maybe it's not clear for everyone that the unitary negation should have lower precedence than exponentiation (and I don't think that the URL you posted changed many opinions)
2. the documentation describes very clearly and accurately how it works, and in the documentation it seems perfectly logical ...
URL of the table of precedence of arithmetic operators:
http://developer.apple.com/techpubs/macosx/Carbon/interapplicationcomm/AppleScript/AppleScriptLangGuide/AppleScript.103.html#31620
Emmanuel
in the name of those who thought that they had read the documentation once for all.
PS
For a more urgent bug to fix, just ask me :-)
_______________________________________________
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.