Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Rebol interpreter bug with comparison of dates

From: al:bri:xtra at: 4-Dec-2002 11:34

I discovered a problem with dates and comparisons:
>> 'foo < 4/Dec/2002
== false
>> 4/Dec/2002 < 'foo
** Script Error: Cannot use lesser? on date! value ** Near: 4-Dec-2002 < 'foo Note that the comparison can't be reversed. This seems to affect all Rebol versions, including Rebol/Base. The correct response from Rebol should be like:
>> 4/Dec/2002 < 'foo
== false Andrew Martin -><- Andrew Martin