[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Method Compilation Question
- To: konstan@postgres.Berkeley.EDU
- Subject: Method Compilation Question
- From: Chris McConnell <mcconnel@ads.com>
- Date: Fri, 16 Jun 89 07:56:49 PDT
- Cc: commonloops.pa@Xerox.COM
- In-reply-to: Joe Konstan's message of Thu, 15 Jun 89 17:37:52 -0700 <8906160037.AA01410@eden.Berkeley.EDU>
- Redistributed: commonloops.pa
Here is a function that I have used to compile methods.
;;;
(in-package 'pcl)
(export '(compile-methods))
;;;
(defun COMPILE-METHODS (generic-function)
"Make sure that methods of GENERIC-FUNCTION are compiled."
(dolist (method (generic-function-methods generic-function))
(unless (compiled-function-p (method-function method))
(setf (method-function method)
(compile nil (method-function method))))))