guile-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] Implement local-eval, local-compile, and the-environment


From: David Kastrup
Subject: Re: [PATCH] Implement local-eval, local-compile, and the-environment
Date: Tue, 03 Jan 2012 12:55:35 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux)

Mark H Weaver <address@hidden> writes:

> Hello all,
>
> I have now produced two very different implementations of
> `the-environment' and `local-eval' that support compilation.
>
> Included below is a simple patch that I believe is ready for commit to
> the stable-2.0 branch, and I very much hope it can be included in 2.0.4.
>
> However, before I tell you about this nice simple patch, I'll briefly
> mention the other more complex (and more efficient) compiler
> implementation.

How will either fare with:

(let ((env
  (let ((x 1))
    (the-environment))))
  (local-eval '(set! x 4) env))

? It sounds to me like the more complex variant might have a better
chance of working "as intended" (TM).

-- 
David Kastrup




reply via email to

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