0.7.7.40:
[sbcl.git] / src / pcl / env.lisp
index becccfa..8018e81 100644 (file)
 
 (defmethod make-instance ((class cl:class) &rest stuff)
   (apply #'make-instance (coerce-to-pcl-class class) stuff))
-(defmethod change-class (instance (class cl:class))
-  (apply #'change-class instance (coerce-to-pcl-class class)))
+(defmethod change-class (instance (class cl:class) &rest initargs)
+  (apply #'change-class instance (coerce-to-pcl-class class) initargs))
 
 (macrolet ((frob (&rest names)
             `(progn
-               ,@(mapcar #'(lambda (name)
-                             `(defmethod ,name ((class cl:class))
-                                (funcall #',name
-                                         (coerce-to-pcl-class class))))
+               ,@(mapcar (lambda (name)
+                           `(defmethod ,name ((class cl:class))
+                              (funcall #',name
+                                       (coerce-to-pcl-class class))))
                          names))))
   (frob
     class-direct-slots