[REBOL] Re: [TYPE] weird return value
From: joel:neely:fedex at: 21-Apr-2004 14:30
>> reduce [type? /home/http/run/cohen/birds]
== [refinement! /http /run /cohen /birds]
So each element of the path-looking thingie is treated as a distinct
value, and what gets printed is the last one, just as in
>> type? 1 2 3 4
Hope this helps!
Hallvard Ystad wrote:
> Hi Tim,
> You start with a /, and for some reason, that is recognized as a refinement!, not a
> == refinement!
> refinements are (like?) a data type:
> == /home
> But I do agree that type? /home/http/run/cohen/birds should not return /birds.
> Dixit Tim Johnson (20.29 21.04.2004):
>>this is weird:
>>/birds is obviously not a type.
>>What is happening here?
>>Tim Johnson <[tim--johnsons-web--com]>
>>To unsubscribe from this list, just send an email to
>>[rebol-request--rebol--com] with unsubscribe as the subject.
> Prętera censeo Carthaginem esse delendam
As we enjoy great advantages from inventions of others, we should be
glad of an opportunity to serve others by any invention of ours;
and this we should do freely and generously.
-- Benjamin Franklin