Did anyone solve Romano's find/match mystery?
[1/2] from: pwawood::mango::net::my at: 6-May-2005 14:30
Back in December 2002, Romano posted on the mailing list (HYPERLINK
http://www.rebol.org/cgi-bin/cgiwrap/rebol/ml-display-message.r?m=rmlRWNJ
h
ttp://www.rebol.org/cgi-bin/cgiwrap/rebol/ml-display-message.r?m=rmlRWNJ) :
Can someone explain this?
>> find/match/last/tail "ba" "b"
== none
>> find/match/last "ba" "b"
== "a"
I checked in Core 2.5.6 and View 1.2.10 and still get the same results.
Does anyone know if this has been fixed? (if it is a bug). Should it be
added to RAMBO?
Regards
Peter
[2/2] from: gabriele::colellachiara::com at: 6-May-2005 11:58
Hi PeterWAWood,
On Friday, May 6, 2005, 8:30:36 AM, you wrote:
P> Can someone explain this?
>>> find/match/last/tail "ba" "b"
P> == none
>>> find/match/last "ba" "b"
P> == "a"
I think /match is incompatible with /last, and it already implies
/tail. Could be considered a bug, since the combination should
probably give an error, or at least ignore /last and /tail.
Regards,
Gabriele.
--
Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
Amiga Group Italia sez. L'Aquila --- SOON: http://www.rebol.it/