[REBOL] Re: Comparing path!
From: g:santilli:tiscalinet:it at: 30-Aug-2002 19:52
Hi Robert,
On Friday, August 30, 2002, 6:21:02 PM, you wrote:
>>> (select test 'type) = (to-path replace text "_" "/")
TO-PATH is not doing what you expect it to do (maybe this is a
bug, what do others think?); use LOAD instead.
>> p: 'a/b/c/d
== a/b/c/d
>> p/1
== a
>> p/2
== b
>> p/3
== c
>> p: to-path "a/b/c/d"
== a/b/c/d
>> p/1
== a/b/c/d
>> p/2
== none
>> p: load "a/b/c/d"
== a/b/c/d
>> p/1
== a
>> p/2
== b
Regards,
Gabriele.
--
Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r