it's also slightly faster. (lp#998926)
* bug fix: better error messages for malformed declarations.
(lp#1000239)
+ * bug fix: define-condition didn't return the name of the defined condition.
* documentation:
** improved docstrings: REPLACE (lp#965592)
;; is a lambda referring to condition slot accessors:
;; they're not proclaimed as functions before it has run if
;; we're under EVAL or loaded as source.
- (%set-condition-report ',name ,report))))))
+ (%set-condition-report ',name ,report)
+ ',name)))))
\f
;;;; various CONDITIONs specified by ANSI
((slot :initarg :slot :reader ,reader))
(:report (lambda (c stream)
(format stream "Oops: ~S" (,reader c))))))))))
+
+(with-test (:name :define-condition-result)
+ (let ((name (gensym "CONDITION")))
+ (assert
+ (eq (eval `(define-condition ,name () ()))
+ name))))