From: kur (Noriyuki Kurabayashi)

Subject: Re: [pcspr4190] eval-when behavior

Date: 1996-11-27 0:11

At 6:51 PM 96.11.26, Eric McCarthy wrote:

> > Loading compiled file (foo.fsl) prints `BAR' while I expect that > > nothing is printed. Is this proper behavior?
> > It looks proper to me. Why do you think nothing should be printed?
Hi, Eric. First, I'm using ACL for Win 3.0 (3.0.6a,P kernel w/ no patches) that I forgot to report. Well, dpANS(*1) says, and ACL Help summarizes, that top-level forms are processed by file compiler according to a certail rule as below: CT LT EX MODE ACTION No No Yes NCT Discard CT :COMPILE-TOPLEVEL MODE processing mode of the file compiler LT :LOAD-TOPLEVEL NCT not-compile-time mode EX :EXECUTE File compiler is in the not-compile-time mode initially. In the case of my prevous mail, the compiler will be encountered `(EVAL-WHEN (:EXECUTE) ...)' AS A TOP-LEVEL FORM, so that the body will be ignored, I think. -Noriyuki (*1) 3.2.3 File Compilation, page 3-19