RE: the difference between -(-1) and -- 1
RE: the difference between -(-1) and -- 1
- Subject: RE: the difference between -(-1) and -- 1
- From: Olof Hellman <email@hidden>
- Date: Thu, 30 Jan 2003 12:46:46 -0800
>
From: Doug McNutt <email@hidden>
>
>
At 11:29 -0700 1/29/03, Michelle Steiner wrote:
>
>So, what is the difference between + (-1) and - 1?
>
>
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).
>
And of course, don't forget the subtle difference between
2-(-1)
and
2--1
- Olof
_______________________________________________
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.