unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Lexical environment for functions?
@ 2014-12-27 17:11 David Kastrup
  2014-12-28  0:10 ` Stefan Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: David Kastrup @ 2014-12-27 17:11 UTC (permalink / raw)
  To: emacs-devel


I read

    eval is a built-in function in `eval.c'.

    (eval FORM &optional LEXICAL)

    Evaluate FORM and return its value.
    If LEXICAL is t, evaluate using lexical scoping.
    LEXICAL can also be an actual lexical environment, in the form of an
    alist mapping symbols to their value.

    [back]

Does that mean that lexical environments exist only for value cells?  No
function cells?  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.

Does one need to create an obarray for each kind of interpretation and
reread the input with the changed obarray in place?

-- 
David Kastrup



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-12-28  6:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-27 17:11 Lexical environment for functions? David Kastrup
2014-12-28  0:10 ` Stefan Monnier
2014-12-28  6:40   ` David Kastrup

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).