#emacs #oop #eieio #clos
can any CLOS-ians can throw me a bone, regarding multi method inheritance:
say i have a group (1) of classes with methods, and another group (2) of classes.
i want group 2 to be the same as group 1 except that they all run a different version of a single method.
do i define another class for group 2, specialize the one method on it, and then have the classes in group 2 multi-inherit that class?
like
(defclass group-2-class (group-1-class-counterpart new-extra-method-class)
(())
it seems to work, but i'm confused as to why, if group-1-class-counterpart precedes new-extra-method-class in the superclasses, the method of new-extra-method-class seems to run at all?
i tried it with the two superclasses the otherway around, which is what i thought was required, and it did not work, as no group 1 methods seemed to be called.