[REBOL] Re: pair-edit style - desktop url argument - to-lit-path bug?
From: rotenca:telvia:it at: 26-Jun-2002 17:23
Hi Anton,
> But your example leads to an "interesting thing":
>
> to-lit-path %/a-path/blah
> == '/a-path//blah ; <- double slash
>
> and note also
>
> to-lit-path %/a-path/blah/dog
> == '/a-path//blah//dog ; <- two double slashes
>
> Is this a bug, or just escapism?
'/a-path//blah is a path which contains 2 items:
1) /a-path (refinement!)
2) /blah (refinement!)
both items are refinements:
length? to-lit-path %/a-path/blah ; == 2
type? first to-lit-path %/a-path/blah ;== refinement!
type? second to-lit-path %/a-path/blah ;== refinement!
It is not a bug, neither escape.
---
Ciao
Romano