[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Understanding Method Combination.
- To: Gregor.pa@Xerox.COM
- Subject: Re: Understanding Method Combination.
- From: David N Gray <Gray@DSG.csc.ti.com>
- Date: Mon, 20 Mar 89 10:03:39 CST
- Cc: James Rice <rice@SUMEX-AIM.STANFORD.EDU>, Common-Lisp-Object-System@SAIL.STANFORD.EDU
- In-reply-to: Msg of Sun, 19 Mar 89 04:19 PST from Gregor.pa@Xerox.COM
- Sender: GRAY@Kelvin.csc.ti.com
> The MOP provides this behavior, and PCL implements a version of it. In
> fact, much of this is specified in chapters 1 and 2.
>
> COMPUTE-APPLICABLE-METHODS (generic-function args)
>
> This accepts a generic function and a list of arguments and
> returns the ordered list of methods applicable to those arguments.
>
> COMPUTE-EFFECTIVE-METHOD-BODY (generic-function methods)
>
> This takes a generic function and a list of methods and returns
> the `effective method body' of the effective method. So, this
> does the actual method combination. Note that the arguments to
> this will change slightly in a future release.
This may work in PCL, but there isn't any COMPUTE-EFFECTIVE-METHOD-BODY
in chapter 3 of the CLOS specs. There is only COMPUTE-EFFECTIVE-METHOD,
which returns the complete method object rather than a form.