I think this is a common error.
While it's in the block, it's just unevaluated words.

but

do second [ one two ]

should work.

On Wed, Jan 14, 2009 at 7:47 PM, Giuseppe Chillemi
<[email protected]> wrote:
>
>
>> SECOND returns a word, and REDUCE does not reduce a word to
>> its associated value.
>> (REDUCE does reduce words inside a block that it is passed,
>> so this might seem
>> strange.)
>
> In fact I have reported it as a bug making a mistake because I presumed that
>
>
> two: 2
> Probe REDUCE second [one two]
>
> was the same of
>
> two: 2
> probe REDUCE TWO
>
> Instead "second [one two]" returns 'TWO rather than TWO which is a thing you
> don't notice in the consolle as the ouput is TWO in both situations.
>
>
>> To reduce a word to its value, use GET.
>>
>>       probe get 'two
>>
>> or
>>
>>       probe get second [one two]
>
> The latter is the answer I have been searching for. Thanks in advance
>
> Giuseppe Chillemi
>
> --
> To unsubscribe from the list, just send an email to
> lists at rebol.com with unsubscribe as the subject.
>
>



-- 
Graham Chiu
http://www.synapsedirect.com
Synapse - the use from anywhere EMR.
-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to