Files

11 lines
441 B
Markdown

# 15_clos
Classes, instances, generic dispatch, and method combination.
DEFGENERIC names an operation; DEFMETHOD implements it, once per
class. :BEFORE and :AFTER methods combine around the primary one,
and (EQL x) specializers dispatch on a single value.
WITH-SLOTS and WITH-ACCESSORS read a whole object at a glance,
CALL-NEXT-METHOD stands on the method above, and PRINT-OBJECT with
:DEFAULT-INITARGS shape how objects print and build.