Howdy, Gabriele:
The new capability of QUERY was mentioned in the last
changes file for view beta 4.1. I figured it was easy
to overlook so I've been hoping to find a good
oportunity to mention it. :-)
x: make object! [a: 1 b: 2]
query/clear x
== none ;- nothing when it's brand new
set in x 'a 33
z: query/clear x
== [a]
reduce z
== [33] ;- block returned bound to the queried object
c: to-set-word 'b
x/:c 99
query/clear x
== [b] ;- even round about modifications are remembered
New strains of REBOL introspection! (-:
-jeff
> On 09-Giu-00, you wrote:
>
> w> Using the new ability to QUERY objects, you can do the
> w> following:
>
> Is this documented somewhere? There's no hint to this in
> the help for QUERY.
>
> Anyway, this is VERY interesting.