[REBOL] Re: to-path newline problem?
From: g:santilli:tiscalinet:it at: 14-Aug-2001 16:41
On 12-Ago-01, you wrote:
(BTW, to-path is quite low-level... it does strange things:
>> to-path "[hello there]"
== [hello there]
>> to-path "[hello there] [ha]"
== [hello there]/[ha]
>> p: to-path "system words"
== system/words ; it looks ok, but it is not bound (as expected)
** Script Error: system is not defined in this context.
** Where: p
>> to-path [look/at this]
== look/at/this ; this is subtle
>> first to-path [look/at this]
>> second to-path [look/at this]
It all happens because a path seems to be implemented as a variant
of block!, like most series.
LP>>> path: to-path load replace/all mold b "^/" ""
LP> == hello/there
path: to-path load trim/lines mold b
Gabriele Santilli <[giesse--writeme--com]> - Amigan - REBOL programmer
Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/