bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#40827: 28.0.50; Macroexpansion at runtime


From: Lars Ingebrigtsen
Subject: bug#40827: 28.0.50; Macroexpansion at runtime
Date: Tue, 10 Aug 2021 18:05:32 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Stefan Monnier <monnier@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





reply via email to

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