X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fpcl%2Fenv.lisp;h=8018e812f90a751a30888cdaf15a4be3c6f4ccbe;hb=c9d46bcb70ff719911bb1121493501ade1f54ca9;hp=dec5e0b29e5f16bccd0e01890f90fca1cab95ffc;hpb=4fc9d21ae1d8a6a2f8ff70f589d5da103203de13;p=sbcl.git diff --git a/src/pcl/env.lisp b/src/pcl/env.lisp index dec5e0b..8018e81 100644 --- a/src/pcl/env.lisp +++ b/src/pcl/env.lisp @@ -103,9 +103,9 @@ (defun trace-method-internal (ofunction name options) (eval `(untrace ,name)) - (setf (symbol-function name) ofunction) + (setf (fdefinition name) ofunction) (eval `(trace ,name ,@options)) - (symbol-function name)) + (fdefinition name)) |# ;;;; MAKE-LOAD-FORM @@ -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