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

[REBOL] Re: [TYPE] weird return value

From: hallvard::ystad::oops-as::no at: 21-Apr-2004 22:03

Dixit Tim Johnson (21.45 21.04.2004):
> (again my opinion): > a call to type? should either return a > valid type name or throw some kind > of an exception.
Oh, but it does! But on the original line, there was type? /home/http/run/cohen/birds Rebol evaluates through the line, but prints to the console only the last value it encounters. Rebol will pass through like this: refinement!, /http, /run, /cohen, /birds, ... nothing more? OK, let's return /birds, then: == /birds Like Joel pointed out:
>> type? 1 2 3 4
== 4 integer!, 2, 3, 4, ... nothing more? ... etc. But I do admit that it is confusing that rebol sees word boundaries where we do not (immediately). HY