[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Lexical environment for functions?
From: |
Stefan Monnier |
Subject: |
Re: Lexical environment for functions? |
Date: |
Sat, 27 Dec 2014 19:10:09 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
> Does that mean that lexical environments exist only for value cells?
Yes, at least for the "native" lexical binding.
> Because it would seem convenient, if one has some
> Lisp-like presentation of a parse tree like XML, to just eval it with a
> number of function bindings in place.
Just like you could simulate the new (eval E ENV) form via
(eval `(lexical-let ,ENV ,E)), you can do the above with
(eval `(cl-flet FENV E)).
Stefan