From: Erik Naggum

Subject: Re: find method with eql-specialized methods

Date: 1998-7-22 15:48

* Stefan Landvogt
| (defmethod foo (arg))
| (defmethod foo ((arg integer)))
| (defmethod foo ((what (eql :bar))))
:
| But what to use for the eql specialized method.

  I haven't been able to make much sense out of FIND-METHOD, but with about
  3 minutes of research into the internals of that function, I managed to
  dig up this form as a _working_ answer, without knowing whether it is
  correct according to the specification or not:

(find-method #'foo (list (clos:intern-eql-specializer :bar)))
=> #<standard-method foo ((eql :bar))>

| According to the Hyperspec the parameter specializer can be a
| class-object, a symbol or a list of (eql <object>)  

  how did you conclude that it should accept a list like (eql <object>)?
  
#:Erik