[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: When should eval-when eval?
From: |
Marius Vollmer |
Subject: |
Re: When should eval-when eval? |
Date: |
18 May 2001 01:50:24 +0200 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.102 |
Rob Browning <address@hidden> writes:
> OK, so eval-when only works on the top level in Guile. OK. I kinda
> expected that, and it simplifies things. That's not the case in CL.
Err, no. I meant to portray it as working exactly like the CL
`eval-when', but I failed. I only just learned about the table
describing `eval-when'.
> I wondered why you'd ever put an eval-when in a non-top-level form,
> but it just dawned on me that it might be relevant for
> macroexpansions. i.e.
I also only just learned that the term "top-level" in CL means
something different from what I thought it does. It does not
correspond to a empty lexical environment, but is used rather
specifically only for forms processed by `compile-file'. THe
expression handed to `eval' is not treated as a top-level form, for
example.
> I'll also try to look at the compilation chapter for other
> interesting bits.
Yes, me too. `eval-when' is much more complicated than I first
thought...