|
From: | Stefan Monnier |
Subject: | bug#21072: Brave new mark-defun (and a testing tool) |
Date: | Wed, 03 May 2017 08:44:51 -0400 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
> Running: I assume you mean "without compilation" (i.e. using only the .el file). > | form | evaled? | compiled? | > |---------------------------------+---------+-----------| > | (defun ...) | yes | no | > | (eval-when-compile (defun ...)) | no | no | ^^ yes > Compilation: And > | form | evaled? | compiled? | > |---------------------------------+---------+-----------| > | (defun ...) | no | yes | > | (eval-when-compile (defun ...)) | yes | yes | ^^^ no Instead, the whole expression is compiled as a constant holding the value returned from the evaluation. Hence this can be used for things like (eval-when-compile (+ 3 4)). Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |