Use of the secondary return value of compute-effective-method

From: Yuji Minejima (ggb01164_at_nifty.ne.jp)
Date: 07/30/04


Date: Fri, 30 Jul 2004 11:50:56 +0900


>From MOP's description for COMPUTE-EFFECTIVE-METHOD,
http://www.lisp.org/mop/dictionary.html#compute-effective-method
> This generic function returns two values. The first is an effective
> method, the second is a list of effective method options.

For me, effective method options (actually the :arguments and the
:generic-function options given in the long form of
define-method-combination) seem to be of no or little use in this context.

Because all the processing involving these options are done inside of the
compute-effective-method body and the resulting effective method
is returned as the first value.

Could you tell me, who uses for what with this information?

Thanks, in advance.



Relevant Pages

  • Re: multithreading (was: CMUCL versus SBCL: big differences?)
    ... > generic function at the same time as you change the class hierarchy? ... I imagine a good implementation would look up the effective method from ... - from the generic function to its hash table of effective methods, ...
    (comp.lang.lisp)
  • Re: PMD with CLOS-style Method Combination
    ... I recently happened upon the paper Prototypes with Multiple Dispatch by ... See the CLOS specification on method selection and method combination (aka "determining the effective method"), and especially note that the effective method may depend only on the classes or identities of the arguments passed to a generic function. ...
    (comp.lang.lisp)
  • Re: Use of the secondary return value of compute-effective-method
    ... the second is a list of effective method options. ... compute-effective-method has been passed the generic function as argument, ... define-method-combination macro. ...
    (comp.lang.lisp)
  • Re: Use of the secondary return value of compute-effective-method
    ... Yuji Minejima wrote: ... >>This generic function returns two values. ... the second is a list of effective method options. ... Tyler: "How's that working out for you?" ...
    (comp.lang.lisp)