[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: A plea for local-eval in 2.0.4
From: |
David Kastrup |
Subject: |
Re: A plea for local-eval in 2.0.4 |
Date: |
Sat, 14 Jan 2012 19:04:03 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) |
Mark H Weaver <address@hidden> writes:
> Indeed, (local-eval '(set! x 5) <env>) is _not_ equivalent to
> (module-set! (current-module) 'x 5).
To clarify: I was thinking about
(local-eval '(set! x 5) <env>) vs
(local-eval '(module-set! (current-module) 'x 5) <env>)
> Assuming that `x' is not locally bound within the captured lexical
> environment, the first sets `x' in the module captured by
> (the-environment), i.e. the module where `x' would have been set if you
> had put (set! x 5) in place of (the-environment). The second sets `x'
> in the (current-module) at the time of evaluation.
Yes, that would be what I would expect given the two local-eval calls
above.
--
David Kastrup
- Re: A plea for local-eval in 2.0.4, (continued)
- Re: A plea for local-eval in 2.0.4, Mark H Weaver, 2012/01/13
- Re: A plea for local-eval in 2.0.4, David Kastrup, 2012/01/13
- Re: A plea for local-eval in 2.0.4, Mark H Weaver, 2012/01/13
- Re: A plea for local-eval in 2.0.4, David Kastrup, 2012/01/14
- Re: A plea for local-eval in 2.0.4, Andy Wingo, 2012/01/14
- Re: A plea for local-eval in 2.0.4, David Kastrup, 2012/01/14
- Re: A plea for local-eval in 2.0.4, Andy Wingo, 2012/01/14
- Re: A plea for local-eval in 2.0.4, Mark H Weaver, 2012/01/14
- Re: A plea for local-eval in 2.0.4, David Kastrup, 2012/01/14
- Re: A plea for local-eval in 2.0.4, Mark H Weaver, 2012/01/14
- Re: A plea for local-eval in 2.0.4,
David Kastrup <=
- Re: A plea for local-eval in 2.0.4, David Kastrup, 2012/01/14
- Re: A plea for local-eval in 2.0.4, Mark H Weaver, 2012/01/14
Re: A plea for local-eval in 2.0.4, Andy Wingo, 2012/01/14