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

Re: eval-when

    (eval-when (load)
      (eval-when (eval load compile)

    Should it evaluate <stuff> at compile time?  I can think
    of arguments both for and against.

If this evaluates <stuff> at compile time, I would be very confused.
As I think of it, the entire inner eval-when form should only be
evaluated at load-time, and should be ignored at all other times.
This should work just like nested ifs:

(if (memq *time* '(load)
    (if (memq *time* '(eval load compile)