Re: Possible bug.
Re: Possible bug.
- Subject: Re: Possible bug.
- From: Paul Berkowitz <email@hidden>
- Date: Sun, 02 May 2004 22:23:50 -0700
On 5/2/04 8:43 PM, "deivy petrescu" <email@hidden> wrote:
>
>
Paul, sorry, but I have to take it back!
>
You are right. It is a problem with periodic fractions.
>
But looking at it again, it seems like bug.
>
And using your own words "inconsistent implicit coercion."
>
Inconsistent behavior is consisten with a bug!
>
If it handles complicated operations it should also handle divisions.
>
Long or short results. Or, not handle any at all.
That's not really the point. AppleScript can do the arithmetic.
' run script: Run a specified script or script file
run script script -- the script text (or an alias or file reference of
a script file) to run
it doesn't say anything about 'number' or 'real', does it? 'run script' can
run a text script or a script file. So give it text, like it's asking for.
If you give it a number, all bets are off. you can't call it a bug when it
fails to do what's undocumented in the first place. It so happens that some
silent coercion works when you give it a rational number but not an
irrational one. So what? You shouldn't be giving it a number in the first
place. It's awfully simple to make an explicit coercion 'as string' - every
time - so you never need to know that you could omit that for certain types
of numbers. Don't try. Forget about it. Just do what's documented and
there's no problem. Give 'run script' a string, like it wants, and be happy
it works - 100% - when the string is a compliable script source. There's no
bug.
--
Paul Berkowitz
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.