DEFINE-CONDITION performs load-time effect at compile-time
Bug #1550070 reported by
Douglas Katzman
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
New
|
Undecided
|
Unassigned |
Bug Description
foo.lisp:
===
(eval-when (:compile-toplevel)
(assert (not (sb-kernel:
(define-condition what (warning) ())
(defmacro should-
(print (make-condition 'what))
'(+ 1 2))
(defun baz () (should-
===
* (compile-file "/tmp/foo.lisp")
print #<WHAT {1002B33B43}>
This is a minor issue, but is an obvious inconsistency with how DEFSTRUCT and DEFCLASS work, where there is a clear distinction between the effect of compiling the form versus loading the form.
To post a comment you must log in.
About defclass: https:/ /bugs.launchpad .net/sbcl/ +bug/310120