• 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: Why is it
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why is it


  • Subject: Re: Why is it
  • From: Paul Berkowitz <email@hidden>
  • Date: Fri, 31 Dec 2004 19:46:45 -0800

On 12/31/04 7:29 PM, "Doug McNutt" <email@hidden> wrote:

> At 18:57 -0800 12/31/04, Paul Berkowitz quoted another:
>>
>>> November > June
>>> --> true
>
> "November" > "June"
> --> true

But that's not the same thing! You're using strings, not month constants!
What's that supposed to prove?

December > November
--> true


"December" > "November"
--> false

That proves that using ' > ' with month constants coerces them to integers,
which is intelligent. Using ' > ' with strings just checks the ASCII number
of the initial character.
>
> But I doubt that it has anything to do with conversion to numbers unless
> somehow sorting  in ASCII/Unicode is done numerically. Note that 8 > 4 if
> you're feeling supercalifragilisticexpialidocious.
>
> "Tuesday" > "Monday"
> --> true  (Tuesday comes right after Monday.)
>
> "Sunday" > "Monday"
> --:> false  (Sunday is a day before Monday.)

But you're using strings! Michelle wasn't, nor was I. I started out by
saying that coercion of month to integer was implemented only in Panther (AS
1.9.2) - see http://www.apple.com/applescript/releasenotes/192OSX.html

So if you're currently in one of your Classic episodes, or up to Jaguar, you
won't get any meaning for the month constants.

May I ask why you didn't just copy what Michelle had typed?
>
> At 18:57 -0800 12/31/04, Paul Berkowitz continued:
>> Your question was indeed so subtle that it was not entirely clear that you
>> realized that " > " operator made sense only for numbers here, implying an
>> automatic coercion to integer.
>
> It depends on what the meaning of  "here" is. . . is.

Nonsense. You're not here, nor anywhere near.

--
Paul Berkowitz


 _______________________________________________
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: Why is it (From: Doug McNutt <email@hidden>)

  • Prev by Date: Re: Why is it
  • Next by Date: Re: Why is it
  • Previous by thread: Re: Why is it
  • Next by thread: Re: Why is it
  • Index(es):
    • Date
    • Thread