• 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: unicode text coercion to number bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: unicode text coercion to number bug?


  • Subject: Re: unicode text coercion to number bug?
  • From: Richard Morton <email@hidden>
  • Date: Tue, 14 Sep 2004 18:21:47 +1000

On 14 Sep 2004, at 5:54 PM, Paul Berkowitz wrote:
On 9/14/04 12:35 AM, "Richard Morton" <email@hidden> wrote:

I think Mark got his examples the wrong way around...
...I get the same result as this under 10.3.3.

Ah, yes. Well, just one of those dumb AppleScript things. If you don't do
silly stuff you won't get surprises. Just use numbers, not text, for all
arithmetic calculations.

Presuming that Mark is not specifically coercing a number to Unicode
text just to do arithmetic on it, which seems unlikely, it may be worth
him coercing the text - 'as number' - before numeric operations.


Still, the behaviour above doesn't seem ideal - they should either both
work or both fail I think.

Suppose so, yes. I think a coercion here is dumb and unnecessary myself.
MUCH better to error and show you you're using improper data types for these
operations.

Sure. I was just giving him the benefit of the doubt & guessing he was getting the unicode passed or read in from somewhere else & was hoping it would auto coerce. I guess we'll find out what he was trying to do shortly...


Cheers,

Walla Beta

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: unicode text coercion to number bug? (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: String to list conversion
  • Next by Date: Re: Your message to Applescript-users awaits moderator approval RE: IS: Swapping SE Format Styles for List Postings -- WAS: Re: String > to list conversion
  • Previous by thread: Re: unicode text coercion to number bug?
  • Next by thread: Re: unicode text coercion to number bug?
  • Index(es):
    • Date
    • Thread