2008/7/11 Ludovic Courtès <[EMAIL PROTECTED]>:

> "Maciek Godek" <[EMAIL PROTECTED]> writes:
>
>> I've been wondering if there's any way to recall
>> (or get inside) an environment of a closure (= to
>> directly access variables bound to a closure)
>
> Yes, with `the-environment':
>
>  guile> ((lambda (a b) (the-environment)) 2 3)
>  (((a b) 2 3) #<eval-closure b7c6dcf8>)
>
> But don't do that, since the representation of environments could
> eventually change.

Don't worry, I won't :)
Now I only know how to obtain environment of a closure,
but I still don't know how to get inside and modify it (I'm
lacking this `with' I wrote about).

Best regards
Maciek Godek


Reply via email to