From: Stefan Monnier <monnier@iro.umontreal.ca>
To: David Kastrup <dak@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Lexical environment for functions?
Date: Sat, 27 Dec 2014 19:10:09 -0500 [thread overview]
Message-ID: <jwvppb4fxg4.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <874msh3tm1.fsf@fencepost.gnu.org> (David Kastrup's message of "Sat, 27 Dec 2014 18:11:50 +0100")
> 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
next prev parent reply other threads:[~2014-12-28 0:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-27 17:11 Lexical environment for functions? David Kastrup
2014-12-28 0:10 ` Stefan Monnier [this message]
2014-12-28 6:40 ` David Kastrup
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvppb4fxg4.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=dak@gnu.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.