metaclass-constructor))
(declare (type symbol predicate))
(declare (type (member structure funcallable-structure) dd-type))
- (declare (ignore boa-constructor predicate runtime-type-checks))
+ (declare (ignore boa-constructor predicate runtime-type-checks-p))
(let* ((dd (make-dd-with-alternate-metaclass
:class-name class-name
(inherits (inherits-for-structure dd)))
(%compiler-defstruct dd inherits)))
+;;; finding these beasts
+(defun find-defstruct-description (name &optional (errorp t))
+ (let ((info (layout-info (classoid-layout (find-classoid name errorp)))))
+ (if (defstruct-description-p info)
+ info
+ (when errorp
+ (error "No DEFSTRUCT-DESCRIPTION for ~S." name)))))
+
(/show0 "code/defstruct.lisp end of file")