• 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: Christopher Nebel <email@hidden>
  • Date: Mon, 3 May 2004 04:25:35 -0700

On May 2, 2004, at 5:33 PM, Deivy Petrescu wrote:

set x to ((1 / (2 ^ 2 + 1)))
run script x --> 0.2

set x to ((1 / (2 ^ 3 + 1)))
run script x --> Syntax error. Some object.

It happens with a bunch of numbers.
Smells like a bug, looks like a bug and walks like a bug, is it a bug?

This is a bug, but it's not the one Paul thinks it is. There's a bug in the AppleScript parser where it chokes on sufficiently long decimal numbers. 0.2, not surprisingly, is fine, but a repeating decimal such as 1/9 will trigger the bug. This is written up already.


--Chris Nebel
AppleScript Engineering
_______________________________________________
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.


References: 
 >Possible bug. (From: Deivy Petrescu <email@hidden>)

  • Prev by Date: Re: Satimage's "find text" command
  • Next by Date: Re: Possible bug.
  • Previous by thread: Re: Possible bug.
  • Next by thread: Weirdness while parsing Headers in Mail.app
  • Index(es):
    • Date
    • Thread