Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!mcvax!unido!gmdzi!jc From: jc@gmdzi.UUCP (Juergen Christoffel) Newsgroups: comp.lang.lisp Subject: Re: (eval-when (load) ... Message-ID: <1064@gmdzi.UUCP> Date: 14 May 89 11:01:14 GMT References: <8905120156.AA17446@anaconda.Stanford.EDU> Organization: GMD - Gesellschaft fuer Mathematik und Datenverarbeitung mbH Lines: 18 From article <8905120156.AA17446@anaconda.Stanford.EDU>, by rit@ANACONDA.STANFORD.EDU (Jean-Francois Rit): > I think the following statement is true: > > (eval-when (load) ) is equivalent to (i.e. at the top-level of > a file. > > Am I right? NO. For example on a Symbolics Lispm you get a different effect if you try both in an editor buffer and give the editor the command "Evaluate Buffer (m-X)" the former (wrapped by eval-when) has no effect at all while the later gets evaluated. This behaviuor makes sense e.g. for initialization forms which must not (or at least should not) be evaluated twice in the same lisp environment. --jc