[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...
http://www.escribe.com/internet/rebol/
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...
http://www.rebolforces.com/articles/pairs1.html
which explains it a lot better than I could. Well worth a read.
--
Carl Read