[REBOL] Re: Rebol interpreter bug with comparison of dates
From: al:bri:xtra at: 4-Dec-2002 20:15
Jan wrote:
> You correctly compare entities of the same type. But you wrote the GENERIC
function, which can work on any GENERIC variable 'b, such as DATE, or an
INTEGER, etc. For example::
> >> find-range [[1 3][31 35] [38 91]] 32
> == [[31 35] [38 91]]
>
> So why do you need comparing apples to oranges, may I ask?
Unfortunately, my example wasn't good enough to show why. Sorry about that.
I wanted to make 'Find-Range operate _exactly_ the same way as Rebol's 'find
works:
>> find [1 2 3 foo "test" #issue] 'bah
== none
>> find [1 2 3 foo "test" #issue] "test"
== ["test" #issue]
Note that 'find can find any value in the series, just like 'Find-Range can
find any range that matches the value. This allows me to extend the words in
my Rebol vocabulary.
Andrew Martin
ICQ: 26227169 http://valley.150m.com/