[REBOL] Re: Unofficial examination of undocumented REBOL features (draft)
From: rebol:svendx:dk at: 25-Oct-2000 0:30
Hello Ryan,
On 24-Oct-00, you wrote:
> I like your idea Thomas to document some of the neet lesser known things you can do
with rebol. Here is one I just discovered today.
>
> The paren! can be used much like a series!...
>
-- snip --
> The paren! datatype is a bit harder to work with because its basic nature is to interpet
everything. For instance:
>
>>> p: load "(a (aa (stuff) ) )"
> == (a (aa (stuff)))
>>> insert p 'myword ;this will try to interpet p
> ** Script Error: a has no value.
> ** Where: a (aa (stuff))
>>> insert :p 'myword ;getting p's value directly bypasses this effect.
> == (a (aa (stuff)))
>>> :p
> == (myword a (aa (stuff)))
>>>
>
> It seems to me that the difference between paren! and block! is only that paren!'s
are executed during the interpeting process.
I agree.
Generally I think it'd be useful to create a list of what each REBOL value evaluates
to, eg:
* a string! value evaluates to itself
* a word! value evaluates to the words value in the context to which it is bound
* a block! value evaluates to itself
* a paren! value evaluates to: do to-block :paren
something like that...
> --Ryan
>
> Thomas Jensen wrote:
>
-- snip --
Best regards
Thomas Jensen