mixin precedence

From: Vladimir Zolotykh (gsmith_at_eurocom.od.ua)
Date: 07/31/04


Date: Sat, 31 Jul 2004 12:06:51 +0300


Would you mind please clarifying the following point?

If I have a mixin class say MY-MIXIN and an ordinary "stand alone"
class MY-CLASS (as opposed to mixin which isn't used alone), when
defining new class say FOO in which order I should specify MY-MIXIN
and MY-CLASS in the superclasses' list? In the simplest case I see no
difference but maybe importance of the order is aroused in some
circumstances? Of course I'm aware of the fact that the position of
the class in the precedence list affects the order of the
applicability of the methods. What I'm seeking for is a kind of a
thumb rule and I vaguely can recall that something like that I've met
before but unfortunately I don't remember what it was about and where.

Thanks in advance

-- 
Vladimir Zolotykh