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

[REBOL] Understanding +

From: apwing:zonnet:nl at: 16-Dec-2003 11:02

Hello list, there is a difference between the documentation of the + function in the REBOL dictionary and the one I get with HELP +. In the first one usage says that + a b should work, while the last one says usage should be a + b. Now when I try it at the console I get for:
>> 1 + 2
== 3
and for:
>> + 1 2 >>
so in the last case no value seems to be returned. Which makes me think that the USAGE direction of the Dictionary is bad. (Is that correct?) When i do:
>> print [ + 1 2 ]
the value "?op?" is returned. And when I do:
>>reduce [ + 1 2 ]
== [op]
something similar is returned. Obviously these values are related to + being an OP! value as in:
>> op? :+
== true but still it is not totally clear to me why the word "op" or even "?op?" is being returned instead of "op!" in the 2 last cases. Perhaps one of you can explain this to me? Thanx so far! Met vriendelijke groet / with kind regards, Arie van Wingerden ICQ 343101686 ----- Original Message ----- From: Carl Read To: [rebol-list--rebol--com] Sent: Tuesday, December 16, 2003 9:35 AM Subject: [REBOL] Re: What does REBOL fix? On 14-Dec-03, [SunandaDH--aol--com] wrote:
> Can we find a snappy one-liner? >
REBOL: XML can't parse itself. -- Carl Read