These features permit you to write code to be evaluated during compilation of a program.
You can get a similar result by putting body in a separate file
and referring to that file with require
. That method is
preferable when body is large.
Common Lisp Note: At top level, this is analogous to the Common
Lisp idiom (eval-when (compile eval) ...)
. Elsewhere, the
Common Lisp `#.' reader macro (but not when interpreting) is closer
to what eval-when-compile
does.
Go to the first, previous, next, last section, table of contents.