X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=doc%2Fmanual%2Fdocstrings.lisp;h=e5db38a5a0baebe891c036ef273ddeb36f5fec6f;hb=bb00c71ace38129b5870c8fe05f70a79b3c6f087;hp=4d31746a995092502c14f0d544360d2d081b50c2;hpb=960802890806a03bdfe83d2f63b341b642cf7527;p=sbcl.git diff --git a/doc/manual/docstrings.lisp b/doc/manual/docstrings.lisp index 4d31746..e5db38a 100644 --- a/doc/manual/docstrings.lisp +++ b/doc/manual/docstrings.lisp @@ -118,6 +118,11 @@ you deserve to lose.") (defmethod specializer-name ((specializer class)) (class-name specializer)) +(defun ensure-class-precedence-list (class) + (unless (class-finalized-p class) + (finalize-inheritance class)) + (class-precedence-list class)) + (defun specialized-lambda-list (method) ;; courtecy of AMOP p. 61 (let* ((specializers (method-specializers method)) @@ -356,7 +361,7 @@ there is no corresponding docstring." ((package constant variable type structure class condition nil) nil) (method - (third (get-name doc))) + (third (get-name doc))) (t ;; KLUDGE: Eugh. ;; @@ -699,7 +704,7 @@ followed another tabulation label or a tabulation body." ;; class precedence list (format *texinfo-output* "Class precedence list: @code{~(~{@w{~A}~^, ~}~)}~%~%" (remove-if (lambda (class) (hide-superclass-p name class)) - (mapcar #'class-name (class-precedence-list (find-class name))))) + (mapcar #'class-name (ensure-class-precedence-list (find-class name))))) ;; slots (let ((slots (remove-if (lambda (slot) (hide-slot-p name slot)) (class-direct-slots (find-class name)))))