Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: to-path newline problem?

From: g:santilli:tiscalinet:it at: 14-Aug-2001 16:41

Hello Larry! 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)
>> p
** 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]
== look/at
>> second to-path [look/at this]
== 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 or: path: to-path load trim/lines mold b Regards, Gabriele. -- Gabriele Santilli <[giesse--writeme--com]> - Amigan - REBOL programmer Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/