guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Closure?


From: Maciek Godek
Subject: Re: Closure?
Date: Fri, 11 Jul 2008 17:32:37 +0200

2008/7/11 Ludovic Courtès <address@hidden>:

> "Maciek Godek" <address@hidden> 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

[Prev in Thread] Current Thread [Next in Thread]