;; but it's better than nothing -wcp10/4/10.
#+(and sbcl #.(cl:if (cl:and (cl:find-package :sb-pcl)
(cl:find-symbol "%TYPE-CHECK-FUNCTION" :sb-pcl))
- '(list 'cl:and) '(list 'cl:or)))
+ '(cl:and) '(cl:or)))
(setf (slot-value esd 'sb-pcl::%type-check-function) nil)
)
result))
(defun slotdef-for-slot-with-class (slot class)
- (find-if #'(lambda (d) (eql slot (slot-definition-name d)))
- (class-slots class)))
+ (typecase slot
+ (standard-slot-definition slot)
+ (symbol
+ (find-if #'(lambda (d) (eql slot (slot-definition-name d)))
+ (class-slots class)))))
#+ignore
(eval-when (:compile-toplevel :load-toplevel :execute)