• 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: AppleScript strings fail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript strings fail


  • Subject: Re: AppleScript strings fail
  • From: "Mark J. Reed" <email@hidden>
  • Date: Sun, 26 Oct 2008 18:02:02 -0400

On Sun, Oct 26, 2008 at 1:06 PM, Nigel Garvey
<email@hidden> wrote:
> has wrote on Sat, 25 Oct 2008 22:56:15 +0100:
>
>>FYI,
>>
>>"1" < "@"
>>--> false
>>
>>This returned 'true' a few months ago; now it returns 'false'.

Hm.  That behavior doesn't seem to be limited to AppleScript:

$ perl -le 'print(( "1" < "@" ) ? "true" : "false")'
false

Although other languages behave OK:

$ python -c 'print "1" < "@"'
True
$ ruby -e 'puts "1" < "@"'
true
$ echo 'puts [expr { "1" < "@" }]' | tclsh -
1



--
Mark J. Reed <email@hidden>
 _______________________________________________
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: 
 >Re: AppleScript strings fail (From: "Nigel Garvey" <email@hidden>)

  • Prev by Date: info for sparsebundle
  • Next by Date: Re: AppleScript strings fail
  • Previous by thread: Re: AppleScript strings fail
  • Next by thread: Re: AppleScript strings fail
  • Index(es):
    • Date
    • Thread