chiark
/
gitweb
/
~mdw
/
lisp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
969cb2f
)
mop: In print-object-with-slots, use write for the slot values.
author
Mark Wooding
<mdw@distorted.org.uk>
Mon, 1 May 2006 09:37:05 +0000
(10:37 +0100)
committer
Mark 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
patch
|
blob
|
blame
|
history
diff --git
a/mdw-mop.lisp
b/mdw-mop.lisp
index 04cc9339e5d7147de7d21f8200953e9432d6caef..e88ff1227a007e10fd375b154f3288b11d6960f9 100644
(file)
--- a/
mdw-mop.lisp
+++ b/
mdw-mop.lisp
@@
-274,7
+274,7
@@
(defun print-object-with-slots (obj stream)
(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 --------------------------------------------------