GNU bug report logs - #40827
28.0.50; Macroexpansion at runtime

Previous Next

Package: emacs;

Reported by: Omar Antolín Camarena <omar <at> matem.unam.mx>

Date: Fri, 24 Apr 2020 19:11:02 UTC

Severity: normal

Found in version 28.0.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: Omar Antolín Camarena <omar <at> matem.unam.mx>, 40827 <at> debbugs.gnu.org, Noam Postavsky <npostavs <at> gmail.com>
Subject: bug#40827: 28.0.50; Macroexpansion at runtime
Date: Tue, 10 Aug 2021 18:05:32 +0200
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:

> We could be more nuanced, indeed, since the "expanded once" can also
> happen for interpreted code (and the "expand many times" can also happen
> in code that's in a compiled file, if that code happened to be "hidden"
> from the compiler, such as hidden within a `quote`).

---
  If the macro is expanded just once, in compilation, then the object is
constructed just once, during compilation.  But in interpreted
execution, the macro is expanded each time the macro call runs, and this
means a new object is constructed each time.
---

I think this is pretty clear -- it's guarded by "if", but it doesn't
claim that compilation will always expand the macro.  So I think this
should be sufficient, and I'm closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 3 years and 280 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.