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

[REBOL] Re: PAIR! and greater-than less-than

From: carl:cybercraft at: 26-Feb-2002 19:22

On 26-Feb-02, alan parman wrote:
> What's up with the following /CORE console output? >>> 10x20 > 10x25 > ** Script Error: Expected one of: pair! - not: pair! > ** Where: halt-view > ** Near: 10x20 > 10x25
You can't compare pairs for greater-than or lesser-than in REBOL. The resons why were discussed exaustively on the list recently. If you're looking for a long read, search for "pair" in the escribe archive here... and choose the "Tuples - Was Pair! thread" and "Pair comparison (was: native? :==)" threads.
>>> minimum 10x20 5x25 > == 5x20
That's expected behaviour, and useful too. Gregg Irwin's written a good article on pairs here... which explains it a lot better than I could. Well worth a read. -- Carl Read