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

[REBOL] Re: R: Re: reduce second [one two]

From: Izkata::Comcast::net at: 26-Jan-2009 1:44

On Wed, 2009-01-14 at 11:39 +0100, Gabriele Santilli wrote:
> "two" is a word!. When a word is evaluated (DO or REDUCE), it produces > the value it is set to. "'two" is a lit-word!. When a lit-word is > evaluated (DO or REDUCE), it produces the respective word value. You > are not getting a lit-word from second, but a word, which is indeed > the second value in the block. But, if you type:
Reduce will not evaluate a word unless it is in a block:
>> two: 2
== 2
>> type? second [one two]
== word!
>> type? 'two
== word!
>> reduce 'two
== two
>> reduce [two]
== [2]