From 41d26b9ecff4e10a07f18b050fca4b02bc11fe66 Mon Sep 17 00:00:00 2001 From: wlott <wlott> Date: Mon, 15 Mar 1993 00:11:58 +0000 Subject: [PATCH] Store the print function in the basic-structure-class-print-function instead of the structure-class-print-function so that it will work for funcallable-structure-class'es also. --- code/defstruct.lisp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/defstruct.lisp b/code/defstruct.lisp index 727af31f8..f61845988 100644 --- a/code/defstruct.lisp +++ b/code/defstruct.lisp @@ -7,7 +7,7 @@ ;;; Scott Fahlman or slisp-group@cs.cmu.edu. ;;; (ext:file-comment - "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/defstruct.lisp,v 1.46 1993/03/14 16:54:03 ram Exp $") + "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/defstruct.lisp,v 1.47 1993/03/15 00:11:58 wlott Exp $") ;;; ;;; ********************************************************************** ;;; @@ -268,7 +268,7 @@ (let ((name (dd-name defstruct))) `(,@(let ((pf (dd-print-function defstruct))) (when pf - `((setf (structure-class-print-function (find-class ',name)) + `((setf (basic-structure-class-print-function (find-class ',name)) ,(if (symbolp pf) `',pf `#',pf))))) -- GitLab