#605 simple condition printing ignores user-supplied methods

closed-fixed
Sam Steingold
clisp (525)
5
2011-08-02
2011-08-02
Sam Steingold
No

(with-output-to-string (s)
(define-condition my-simple (simple-condition) ()
(:report (lambda (c s)
(format s "good: ~S overrides SIMPLE-CONDITION" (type-of c)))))
(princ (make-condition 'my-simple :format-control
"bad: SIMPLE-CONDITION overrides MY-SIMPLE") s))
sbcl: "good: MY-SIMPLE overrides SIMPLE-CONDITION"
clisp: "bad: SIMPLE-CONDITION overrides MY-SIMPLE"

Discussion

  • Sam Steingold
    Sam Steingold
    2011-08-02

    thank you for your bug report.
    the bug has been fixed in the source tree (mercurial/hg).
    you can either wait for the next release (recommended)
    or check out the current mercurial tree (see http://clisp.org\)
    and build CLISP from the sources (be advised that between
    releases the source tree is very unstable and may not even build
    on your platform).

     
  • Sam Steingold
    Sam Steingold
    2011-08-02

    • status: open --> closed-fixed