Re: Very strange dates - BUG
Re: Very strange dates - BUG
- Subject: Re: Very strange dates - BUG
- From: Ruediger Weiss-Mazzoni <email@hidden>
- Date: Fri, 31 Jan 2003 00:08:25 +0100
you're right
as -2^2 is almost equal with -1 * 2^2 the script editor recognizes the
higher precedence of power of 2 and set adds automatically some
brackets to the expression when compiling the script:
-1 * (2 ^ 2)
I tried this on Mac OS X 10.2.3 with the AS 1.9.1 and the 'Script
Editor beta'
bye Rudi
Am Donnerstag, 30.01.03 um 21:31 Uhr schrieb Thomas:
That is clearly a bug, -2^2 should return -4 of course. This lead to
eratic behaviour when you use this kind of calcul.
Thomas
Doug McNutt wrote :
Try: set r to -2^2
The return is +4 because Applescript gives higher precedence to a
unary minus than anything else. It's possible that an associated bug
affects x +(-1).
_______________________________________________
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.