[REBOL] Re: [TYPE] weird return value
From: tim:johnsons-web at: 21-Apr-2004 11:41
* Romano Paolo Tenca <[rotenca--telvia--it]> [040421 11:25]:
> > 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:
> A confirm:
> 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 "/".
<grin> On linux it does.
> To unsubscribe from this list, just send an email to
> [rebol-request--rebol--com] with unsubscribe as the subject.
Tim Johnson <[tim--johnsons-web--com]>