guile-user
[Top][All Lists]
Advanced

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

Re: Closure?


From: Ludovic Courtès
Subject: Re: Closure?
Date: Fri, 11 Jul 2008 17:01:17 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

Hi,

"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.

Thanks,
Ludovic.





reply via email to

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