Hi
I have a test file that contains the following (and nothing more)
(eval-when (:load-toplevel :execute)
(format t "It's eval time~%")
(defparameter *evfoo* "eval-when foo"))
This is what happens in SBCL.
CL-USER> (load "ew.lisp")
It's eval time
T
CL-USER> *evfoo*
"eval-when foo"
CL-USER>
While in LW (and, similarly, in ECL) this happens
CL-USER 20 > (load "ew.lisp")
; Loading text file /Users/marcoxa/Projects/Lang/CL/Temp/ew.lisp
It's eval time
#P"/Users/marcoxa/Projects/Lang/CL/Temp/ew.lisp"
CL-USER 21 > *ewfoo*
Error: The variable *EWFOO* is unbound.
1 (continue) Try evaluating *EWFOO* again.
2 Specify a value to use this time instead of evaluating *EWFOO*.
3 Specify a value to set *EWFOO* to.
4 (abort) Return to top loop level 0.
Type :b for backtrace, or :c <option number> to proceed, or :a to abort.
Type :bug-form "<subject>" for a bug report template or :? for other options.
CL-USER 22 : 1 >
Any hermeneutics about this?
Cheers
--