X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Flate-extensions.lisp;h=4d0e08bbb715ef145092b12d735dd6753164b591;hb=dcb73f3edef1e31078fbe585e2fafbd26743efd7;hp=a841f908b461a8c2eac849e5ef59ac95401eeaa2;hpb=4898ef32c639b1c7f4ee13a5ba566ce6debd03e6;p=sbcl.git diff --git a/src/code/late-extensions.lisp b/src/code/late-extensions.lisp index a841f90..4d0e08b 100644 --- a/src/code/late-extensions.lisp +++ b/src/code/late-extensions.lisp @@ -35,3 +35,13 @@ ;;; ;; be doing him a favor by printing the object here. ;;; ;; -- WHN 2002-10-19 ;;; (error "can't calculate length of cyclic list"))) + +;;; This is used in constructing arg lists for debugger printing, +;;; and when needing to print unbound slots in PCL. +(defstruct (unprintable-object + (:constructor make-unprintable-object (string)) + (:print-object (lambda (x s) + (print-unreadable-object (x s) + (write-string (unprintable-object-string x) s)))) + (:copier nil)) + string)