Lisp HUG Maillist Archive

Who-calls and friends with methods

Hello,
is there a possibility to get xref information wrt specific methods?  
who-calls and friends seem to accept only symbols, so using them I  
can only get xref info for generic functions, not specific methods.

Thank you, Denis.


Re: Who-calls and friends with methods



On 2/27/06, Denis Mashkevich <nedenis@gmail.com > wrote:

Hello,
is there a possibility to get xref information wrt specific methods?
who-calls and friends seem to accept only symbols, so using them I
can only get xref info for generic functions, not specific methods.

Thank you, Denis.

Hi Denis,
    It looks like the documentation for who-calls and calls-who is slightly
    incorrect as they seem to take dspecs as their argument.

    eg.
      (defgeneric test (thing)
         (:method ((x string))
             (princ x))
         (:method ((x integer))
            (print x)))
     
       (calls-who '(method test (string)))
      => (princ)
       (calls-who '(method test (integer)))
      => (print)

The format for particular methods seems to be
 '(method method-name [qualifier] (specializers*))

Cheers,
  Sean.
Updated at: 2020-12-10 08:48 UTC