mop: In print-object-with-slots, use write for the slot values.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 1 May 2006 09:37:05 +0000 (10:37 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 1 May 2006 09:37:05 +0000 (10:37 +0100)
Also print unbound slots as `#<unbound>'.  This is what the SLIME
inspector does and it makes sense.

mdw-mop.lisp

index 04cc933..e88ff12 100644 (file)
                 (progn (format stream " ~@_~:I") (setf sep t)))
             (let ((name (pprint-pop))
                   (value (pprint-pop)))
-              (format stream "~S ~@_~:[~S~;<unbound>~*~]"
+              (format stream "~S ~@_~:[~W~;#<unbound>~*~]"
                       name (eq value magic) value))))))))
 
 ;;;----- That's all, folks --------------------------------------------------