[REBOL] Re: Parse surprise
From: rotenca:telvia:it at: 14-Jan-2003 19:19
Hi,
> why is the content of rslt set to none ? Shouldn't it be the rslt "b"?
>> parse "abcdefgh" [copy x thru 5 copy y thru 4] print [x y]
abcde none
>> parse "abcdefgh" [copy x thru 5 copy y thru 5] print [x y]
abcde none
>> parse "abcdefgh" [copy x thru 5 copy y thru 6] print [x y]
abcde f
It seems that copy works if the second to/thru value is after the first.
Other strange thing:
>> parse "abcdefgh" [copy x to 0] print [x]
abcdefgh
>> parse "abcdefgh" [copy x to 1] print [x]
none
>> parse "abcdefgh" [copy x to 2] print [x]
a
Perhaps is undocumented because it is a unfinished or buggy feature.
---
Ciao
Romano