[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: eval-when
- To: ALAN at MIT-MC
- Subject: Re: eval-when
- From: Daniel L. Weinreb <DLW at MIT-AI>
- Date: Thu ,14 Aug 80 23:19:00 EDT
- Cc: Greenberg.Multics at MIT-MULTICS, LISP-FORUM at MIT-MC
But consider:
(eval-when (compile)
(eval-when (eval)
<stuff>))
When COMPLR sees the outer eval-when, it calls EVAL to process the
rest of the stuff. Then EVAL sees the inner eval-when and, sure
enough, it's now EVAL-time so <stuff> gets evaluated!
Well, when the compiler is evaluating stuff that was inside an
(eval-when (compile) ...), SHOULD that be considered EVAL time or not?
(Q: What time is it when the compiler evaluates something inside
an (eval-when (eval) ...)? A: Time to get a new compiler.)
Actually I am not sure what is right. We could simply award this case
to the first person who is trying to do something reasonable and wants
it a particular way...