I have written this Lisp program:
(eval-when (:load-toplevel)
(princ "Hello!"))
However, when I load the program, the body of the eval-when is not run.
$ sbcl
* (load "hello.lisp")
T
*
What is happening? In the eval-when, I used :load-toplevel to specify that its body should be run when I load the file. I am surprised that (princ "Hello!") did not run when I loaded the file.