From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Andreas Schwab <schwab@suse.de>
Cc: emacs-devel@gnu.org, Wilson Snyder <wsnyder@wsnyder.org>
Subject: Re: Get rid of verilog-no-change-functions
Date: Wed, 16 Sep 2015 09:12:26 -0400 [thread overview]
Message-ID: <jwvh9muy0mk.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <mvmbnd2err8.fsf@hawking.suse.de> (Andreas Schwab's message of "Wed, 16 Sep 2015 09:40:43 +0200")
> eval-when-compile doesn't introduce a scope.
Depends on your definition of scope. And I'm pretty sure your notion of
scope doesn't exactly match the currently implemented notion of scope,
so better not depend too much on such corner cases.
And yes, the "natural" implementation of eval-when-compile where the
compiler just passes the expression to `eval' would end up introducing
a new scope and (eval-when-compile (defvar foo)) would end up not having
any effect at all.
Been there done that! And then took me some time to figure out why the
existing code happens to work as people expect it. It really is
an accident that derives from a "too lax" implementation of the compiler.
Stefan
next prev parent reply other threads:[~2015-09-16 13:12 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-15 23:51 Get rid of verilog-no-change-functions Wilson Snyder
2015-09-16 1:05 ` Stefan Monnier
2015-09-16 7:40 ` Andreas Schwab
2015-09-16 13:12 ` Stefan Monnier [this message]
2015-10-29 13:22 ` Stefan Monnier
-- strict thread matches above, loose matches on Subject: below --
2015-10-29 13:48 Wilson Snyder
2015-10-29 15:31 ` Stefan Monnier
2015-09-14 21:09 Wilson Snyder
2015-09-15 13:45 ` Stefan Monnier
2015-09-12 11:33 Wilson Snyder
2015-09-12 20:21 ` Stefan Monnier
2015-09-12 4:22 Stefan Monnier
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvh9muy0mk.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=schwab@suse.de \
--cc=wsnyder@wsnyder.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 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).