X-Git-Url: http://git.kpe.io/?p=clsql.git;a=blobdiff_plain;f=sql%2Fmetaclasses.lisp;fp=sql%2Fmetaclasses.lisp;h=f6bbd3f68369ca2e065741e5abbccb92989893c2;hp=331e35a01966221026571780190544bc492431db;hb=008ef476827e2b4ec81829f1e204e9f954017678;hpb=95704a836b85f40018186f97b332fd3873168a53 diff --git a/sql/metaclasses.lisp b/sql/metaclasses.lisp index 331e35a..f6bbd3f 100644 --- a/sql/metaclasses.lisp +++ b/sql/metaclasses.lisp @@ -526,11 +526,12 @@ implementations." (setf (specified-type esd) (delistify-dsd (specified-type dsd))) - ;; The type-check-function is computed at defclass expansion, - ;; which is too early for the CLSQL type conversion to take - ;; place. This gets rid of it. It's ugly but it's better - ;; than nothing -wcp10/4/10. - #+sbcl (setf (slot-value esd 'sb-pcl::%type-check-function) nil) + ;; In older SBCL's the type-check-function is computed at + ;; defclass expansion, which is too early for the CLSQL type + ;; conversion to take place. This gets rid of it. It's ugly + ;; but it's better than nothing -wcp10/4/10. + #+(and sbcl #.(cl:if (cl:find-symbol "%TYPE-CHECK-FUNCTION" :sb-pcl) '(and) '(or))) + (setf (slot-value esd 'sb-pcl::%type-check-function) nil) ) ;; all other slots