CLOS discriminating functions and user-defined specializers

Christophe Rhodes

We discuss the interrelationships of ANSI-standardized Common Lisp, the de facto standard AMOP, and the possibility for users to extend the mop:specializer metaobject class. We provide two simple examples, a specializer on a disjunction of classes and a simple pattern-matching specializer, noting the extent to which they can be accomodated with the standard mechanisms, detailing the work done to support that in a contemporary implementation of the CLOS MOP in Steel Bank Common Lisp, and discussing the open problems and scope for resolving them.

Documents