From: Andreas Thiele
Subject: all methods with certain class specializer?
Date: 
Message-ID: <d53ars$6io$03$1@news.t-online.com>
Currently I read the AMOP. I'd like to find all methods which have a
specializer on a certain class.

With

(defmethod test ((x foo) (y bar) ...) ...)

I'd like to have a function

(find-all-methods (class-name) ...)

which would return

CL-USER >(find-all-methods 'foo)
(TEST ...)

I don't see a way to achieve this with the MOP.

Any hints available?
Any special hints for LispWorks?

Thanks

Andreas
From: Andreas Thiele
Subject: Re: all methods with certain class specializer?
Date: 
Message-ID: <d53ed2$i25$02$1@news.t-online.com>
"Andreas Thiele" <······@nospam.com> schrieb im Newsbeitrag
····················@news.t-online.com...
> Currently I read the AMOP. I'd like to find all methods which have a
> specializer on a certain class.
...

Aaaargh, sorry :))

Obviously (specializer-direct-methods (find-class 'foo)) does the job.
Didn't realize this at first reading/testing.

(rem 1: If I really want all methods, I can traverse the class tree).
(rem 2: seems like specializer-direct-generic-functions is not implemented
in LispWorks)

Andreas