• 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: Can someone explain this?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can someone explain this?


  • Subject: Re: Can someone explain this?
  • From: Doug McNutt <email@hidden>
  • Date: Sat, 14 Mar 2009 11:55:11 -0600

At 13:41 -0400 3/14/09, Mark J. Reed wrote:
On Sat, Mar 14, 2009 at 11:02 AM, Deivy Marck Petrescu
<email@hidden> wrote:
 It is the same as saying that in AS

 -3^2
 --> 9.0

is a bug.

No, it's not. Yes, it's a precedence issue, since there is a parsing conflict between "(start through end) of list" and "start through (end of list)", and that sort of thing is to be expected. But the bug is that the presence of "the" (which should be a no-op) changes the resolution of that conflict!

So a better comparison would be if -3^2 was +9, but ---3^2 was -9.

<http://macnauchtan.com/pub/precedence.html>

That document is getting to the point where I need to revisit it. Has AppleScript changed? I'm limited to OS neXt 10.3.9 because of my SE/30 file server that I refuse to give up but over there AppleScript returns (-9) when evaluating (-3^2) and has caused calculation errors in my work. Excel does the same thing while perl and good old FORTRAN get it the way I learned in algebra class a hundred or so years ago.

--
-> Stocks are getting pilloreid <-
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >Can someone explain this? (From: Michelle Steiner <email@hidden>)
 >Re: Can someone explain this? (From: Philip Aker <email@hidden>)
 >Re: Can someone explain this? (From: Deivy Marck Petrescu <email@hidden>)
 >Re: Can someone explain this? (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: Can someone explain this?
  • Next by Date: Re: Can someone explain this?
  • Previous by thread: Re: Can someone explain this?
  • Next by thread: Re: Can someone explain this?
  • Index(es):
    • Date
    • Thread