Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: [TYPE] weird return value

From: joel:neely:fedex at: 21-Apr-2004 14:30

Hello, all... Consider this:
>> 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
== 4 Hope this helps! -jn- Hallvard Ystad wrote:
> Hi Tim, > > You start with a /, and for some reason, that is recognized as a refinement!, not a path!. > >>>type? /home > > == refinement! > > refinements are (like?) a data type: > >>>/home > > == /home > > But I do agree that type? /home/http/run/cohen/birds should not return /birds. > > HY > > Dixit Tim Johnson (20.29 21.04.2004): > >>this is weird: >> >> >>>>type? /home/http/run/cohen/birds >> >>== /birds >> >>/birds is obviously not a type. >> >>What is happening here? >>thanks >>tim >>-- >>Tim Johnson <[tim--johnsons-web--com]> >> http://www.alaska-internet-solutions.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