Subject: Re: how to call a method returned from find-method
From: rpw3@rpw3.org (Rob Warnock)
Date: Sat, 12 Feb 2005 23:59:32 -0600
Newsgroups: comp.lang.lisp
Message-ID: <u_qdnYIV_fRZcZPfRVn-rQ@speakeasy.net>
Bruno Haible  <bruno@clisp.org> wrote:
+---------------
| > I was wondering if it is possible, and if so how, to call a method that
| > is returned from find-method.  Funcall does not seem to work :(
| 
| On platforms supporting the MOP, yes, it is possible in a portable way.
| (CLOS:METHOD-FUNCTION method) returns the actual function code contained
| in the method.
+---------------

Note that in CMUCL that needs to be PCL:METHOD-FUNCTION,
but other than that Bruno's example works as shown there, too.


-Rob

-----
Rob Warnock			<rpw3@rpw3.org>
627 26th Avenue			<URL:http://rpw3.org/>
San Mateo, CA 94403		(650)572-2607