[Top][All Lists]
[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.
- Re: Closure?, Kjetil S. Matheussen, 2008/07/11
- Re: Closure?,
Kjetil S. Matheussen <=
- Re: Closure?, Neil Jerram, 2008/07/12
- Re: Closure?, Ludovic Courtès, 2008/07/15
- Re: Closure?, Andy Wingo, 2008/07/16
- Re: Closure?, Ludovic Courtès, 2008/07/16
Re: Closure?, Kjetil S. Matheussen, 2008/07/14
- Re: Closure?, Maciek Godek, 2008/07/14
- Message not available