guile-user
[Top][All Lists]
Advanced

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

Re: Eval with local environment?


From: David Kastrup
Subject: Re: Eval with local environment?
Date: Sat, 19 Aug 2017 23:36:17 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Christopher Howard <address@hidden> writes:

> I was just curious: Is there something you can pass to eval procedure
> that using the local environment? e.g.,
>
> (let ((foo 12)) (eval 'foo (this-environment)))
>
> to get it to return 12.

No.  But there is

(use-modules (ice-9 local-eval))

(let ((foo 12)) (local-eval 'foo (the-environment)))

-- 
David Kastrup




reply via email to

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