Really I want per-class allocation, not "in this class" allocation.
Achievable with a small amount of MOP, but...
(in-package "SPECIALIZABLE")
(defclass extended-specializer (sb-mop:specializer)
(in-package "SPECIALIZABLE")
(defclass extended-specializer (sb-mop:specializer)
+ ;; FIXME: this doesn't actually do quite what I wanted.
((direct-methods-table :allocation :class
:initform nil :accessor direct-methods-table)))
((direct-methods-table :allocation :class
:initform nil :accessor direct-methods-table)))