X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=sql%2Fmetaclasses.lisp;h=f6bbd3f68369ca2e065741e5abbccb92989893c2;hb=818295fa37036acb348ff24ea926b9d7c9f33cba;hp=331e35a01966221026571780190544bc492431db;hpb=6c83b1d3ad63edfc36a5bb5aee451d1eacc0d555;p=clsql.git 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