• 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: Broken date math on AppleScript 2.0
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Broken date math on AppleScript 2.0


  • Subject: Re: Broken date math on AppleScript 2.0
  • From: Philip Aker <email@hidden>
  • Date: Fri, 22 Feb 2008 06:03:53 -0800

On 2008-02-21, at 15:52:39, Mark J. Reed wrote:

"Unwarranted" is a value judgement. Applescript is designed for users who neither know nor care how numbers are represented in bits.
Automatically promoting makes perfect sense. It's the fact that the addition doesnt yield the right result numerically that makes it a bug.

It's not only the bit width. It's the actual representation. Ever had to deal with a government form?


Name:		Joe
Age:		4.2E+1
Income:	4.2E+10	/*yeah dream on buddy*/

Out here in the wild west, an entry like that will have the clerk scowling at you in no time flat.


Maybe that was good enough in 1992, but not anymore. And just because you two happen to think that unwarranted integer->float promotion is ok doesn't make it correct.


Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@

_______________________________________________
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
  • Follow-Ups:
    • Re: Broken date math on AppleScript 2.0
      • From: "Mark J. Reed" <email@hidden>
References: 
 >Re: Broken date math on AppleScript 2.0 (From: deivy petrescu <email@hidden>)
 >Re: Broken date math on AppleScript 2.0 (From: "Mark J. Reed" <email@hidden>)
 >Re: Broken date math on AppleScript 2.0 (From: deivy petrescu <email@hidden>)
 >Re: Broken date math on AppleScript 2.0 (From: "Mark J. Reed" <email@hidden>)
 >Re: Broken date math on AppleScript 2.0 (From: Philip Aker <email@hidden>)
 >Re: Broken date math on AppleScript 2.0 (From: "Mark J. Reed" <email@hidden>)
 >Re: Broken date math on AppleScript 2.0 (From: Axel Luttgens <email@hidden>)
 >Re: Broken date math on AppleScript 2.0 (From: Philip Aker <email@hidden>)
 >Re: Broken date math on AppleScript 2.0 (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: write file to /Library/Preferences
  • Next by Date: Scripting Entourage to send an email dialogue issue
  • Previous by thread: Re: Broken date math on AppleScript 2.0
  • Next by thread: Re: Broken date math on AppleScript 2.0
  • Index(es):
    • Date
    • Thread