Re: number
Re: number
- Subject: Re: number
- From: Emmanuel <email@hidden>
- Date: Sat, 15 Oct 2005 12:06:26 +0200
At 8:20 PM -0500 10/14/05, Jim Witte wrote:
This works:
script o
property x : -1.780654340609
property y : -5
end script
-(o's x as real)
The '<x>'s <y>' syntax only seems to return a real number (try "o's
x"), but the minus operator doesn't see that it returned a number,
unless it's coerced explicitly to a real. This is one example of
'common sense type coercion' that AS doesn't do that drives me nuts..
I assume "get o's x" specifically sets the type of the return
value correctly. I'd call this a bug..
Jim '
On Sep 22, 2005, at 4:09 AM, jj wrote:
script o
property x : -1.780654340609
end script
-(o's x)
FYI, I submitted the bug, and it was a duplicate.
Emmanuel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >Re: number (From: Jim Witte <email@hidden>) |