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

[REBOL] Re: [TYPE] weird return value

From: tim:johnsons-web at: 21-Apr-2004 11:45

* Gregg Irwin <[greggirwin--mindspring--com]> [040421 11:37]:
> Hi Tim, > > >>> type? /home/http/run/cohen/birds > TJ> == /birds > TJ> /birds is obviously not a type. > > TYPE? is looking at /home, and seeing it as a refinement! value. Then > the others are all refinements as well, and you see the value of the > last one returned. > > >> reduce [ /home/http/run/cohen/birds] > == [/home /http /run /cohen /birds]
I am of the opinion that this is a bug. (again my opinion): a call to type? should either return a valid type name or throw some kind of an exception. Interesting observation below:
> >> reduce [ /home/http/run/cohen/birds] > == [/home /http /run /cohen /birds]
tim
> -- Gregg > > -- > 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]> http://www.alaska-internet-solutions.com