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
"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