freenode/#sicl - IRC Chatlog
Search
14:01:06
beach
What would the parameters of ENSURE-METHOD be? The name of the generic function, the name of the generic-function class, the name of the method class, the lambda list, the list of qualifiers, the list of specializers, the method function, and the documentation?
14:37:42
beach
Actually, now that I think about it, this is a good opportunity to introduce some flexibility.
14:39:06
beach
The generic-function class and the method class should be allowed to be symbols or class metaobjects. And each specializer in the list should be allowed to be either a specializer metaobject, a symbol (designating a class) or a list (EQL <object>) designating an EQL specializer.
14:40:10
beach
In particular, the flexibility of the list of specializers will cut down on a lot of complexity during bootstrapping.
14:41:00
beach
I don't have to call (FIND-CLASS 'T) to create a slot writer method, for instance. I can just pass T if I use ENSURE-METHOD.
15:40:00
beach
Hmm, the AMOP defines ENSURE-METHOD to take a generic function as its first argument.
17:10:52
beach
Something like https://github.com/robert-strandh/SICL/blob/master/Code/CLOS/ensure-method-defun.lisp maybe?