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

[REBOL] Re: Rebol interpreter bug with comparison of dates

From: anton:lexicon at: 4-Dec-2002 17:00

Andrew, An invalid comparison should throw an invalid comparison error. If a < b returns false, that implies that a >= b should return true, but under your scheme it would also return false. I think your scheme would produce far more complications. Maybe an explanation for the problem is that the < operator tries to convert the second argument to the datatype of the first argument. So a word can perhaps be converted to a date (I did this in the console via a string). But I had trouble converting a word to a date! Anton.