[Top][All Lists]

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

Lexical environment for functions?

From: David Kastrup
Subject: Lexical environment for functions?
Date: Sat, 27 Dec 2014 18:11:50 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

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.


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

reply via email to

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