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: jan:skibinski:sympatico:ca at: 3-Dec-2002 18:51

Hi Andrew, The problem seems to be much broader:
>> 2 < 'foo
** Script Error: Expected one of: integer! - not: word! But at least in this case the error message makes some sense. Personally, I don't mind such a behaviour, which disallows comparison of apples to oranges. But I think the definition of (<) is too broad: it should be more specific - narrowed down to the orderable things, such as numbers, dates, but not points, etc. However, since the arguments of this operator are untyped, the "help <" suggests that one can compare anything to anything - and hence those unpleasent runtime surprises. Jan [al--bri--xtra--co--nz] wrote: