X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fpcl%2Fenv.lisp;h=8018e812f90a751a30888cdaf15a4be3c6f4ccbe;hb=48f92d19cf12f3aff81a29a786970264a523bc7a;hp=becccfaed3f78870119f5061ddb65d45d3a56dee;hpb=d5aafdd8ab6387e12bac187048ed322bc96fb79a;p=sbcl.git diff --git a/src/pcl/env.lisp b/src/pcl/env.lisp index becccfa..8018e81 100644 --- a/src/pcl/env.lisp +++ b/src/pcl/env.lisp @@ -142,15 +142,15 @@ (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