return class from reinitialize-instance as SBCL expects (reported in SBCL-devel by...
[clsql.git] / sql / metaclasses.lisp
index 7a2fce71445b311a62a3dd27a6ad09a0f7f71aad..9aa7dd9b014330caa35662b32808a24cab984044 100644 (file)
                    (remove-keyword-arg all-keys :direct-superclasses)))
         (call-next-method)))
   (register-metaclass class (nth (1+ (position :direct-slots all-keys))
-                                 all-keys)))
+                                 all-keys))
+  class)
 
 
 (defun get-keywords (keys list)
@@ -542,9 +543,7 @@ implementations."
 (defun slotdef-for-slot-with-class (slot class)
   (typecase slot
     (standard-slot-definition slot)
-    (symbol
-     (find-if #'(lambda (d) (eql slot (slot-definition-name d)))
-              (class-slots class)))))
+    (symbol (find-slot-by-name class slot))))
 
 #+ignore
 (eval-when (:compile-toplevel :load-toplevel :execute)