[REBOL] Re: parse question
From: robert:muench:robertmuench at: 29-Jun-2001 13:17
> -----Original Message-----
> From: [rebol-bounce--rebol--com] [mailto:[rebol-bounce--rebol--com]]On Behalf Of
> Graham Chiu
> Sent: Wednesday, June 27, 2001 3:30 AM
> To: [rebol-list--rebol--com]
> Subject: [REBOL] parse question
> If parse always returns a string
> eg: parse {a="b"} [ thru {a="} copy test to {"} ]
> and 'test is now a string containing "b"
>
> shouldn't
> parse {a=""} [ thru {a="} copy test to {"} ]
> 'test now be an empty string rather than type none! ?
Hi, I see the whole string "" as the definition for the empty string and there
is nothing between " and ", therefore the none! return value is OK as you read
thru the first " and up-to the next ". Robert