• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Possible bug.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Possible bug.
      • From: Deivy Petrescu <email@hidden>
    • Re: Possible bug.
      • From: Axel Luttgens <email@hidden>
References: 
 >Re: Possible bug. (From: deivy petrescu <email@hidden>)

  • Prev by Date: Re: Possible bug.
  • Next by Date: Weirdness while parsing Headers in Mail.app
  • Previous by thread: Re: Possible bug.
  • Next by thread: Re: Possible bug.
  • Index(es):
    • Date
    • Thread