guile-user
[Top][All Lists]
Advanced

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

Re: Closure?


From: Kjetil S. Matheussen
Subject: Re: Closure?
Date: Fri, 11 Jul 2008 19:47:24 +0200 (CEST)

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

> 
> 
> Ludovic Court?s:
> > "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.
> >
> 
> 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

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