[REBOL] Re: [TYPE] weird return value
From: rotenca:telvia:it at: 21-Apr-2004 21:01
> this is weird:
> >> type? /home/http/run/cohen/birds
> == /birds
> /birds is obviously not a type.
> What is happening here?
It is happening that your are writing a line of code like this:
type? /home /http /run /cohen /birds
the "/" starts a refinement! word that ends at the next "/" where starts
another refinement! word.
the last refinement (/birds) is returned at the end of the evaluation:
length? [/home/http/run/cohen/birds] ;== 5
while a path like this gives:
length? [home/http/run/cohen/birds] ;== 1
A path cannot start with "/".