On Fri, 11 Jul 2008, Kjetil S. Matheussen wrote:

> 
> 
> Ludovic Court?s:
> > "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.
> >
> 
> Please don't change it. :-)
> It's one of those things which makes Guile special.

Sorry, I misunderstood. What I ment is that (the-environment)
etc. is what makes Guile special. I hope there is no
plans to remove all that.



Reply via email to