The example of Anton works unfortunately not in the console,
as the console evaluates the paren and () is equivalent to a do,  so you 
get .. nothing

 >> (1)
== 1
 >>
 >> ()
 >>
 >> type? ()
== unset!
 >>
You can overcome of this in the console by shielding it in a block

 >> first [()]
== ()
 >> type? first [()]
== paren!
 >>

And then you get the desired behavior in the console too
 >> append first [()] 1
== (1)
 >>


Wall, Scott wrote:
> Hi Anton,
>
>   
>> but actually, now we remember that ^^ isn't the Rebol
>> power operator anyway! It's **. Oh well. :-)
>>     
>
> Whoops. You're right. The ** operator seems to work well.
> My input string used ^, so I foolishly assumed that Rebol did as well.
> </blush>
>
>
>   
>> If you want to create parens, then do it like this:
>>
>>      append copy () something
>>     
>
> Couldn't get this append to work.
>
>   
>> or
>>
>>      to-paren reduce [some stuff]
>>     
>
> This, however, works like a charm.
>
> Thanks,
> Scott
>   

-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to