From: Dave Thomas Date: 2003-12-04T02:53:46+09:00 Subject: Re: mixin vs. multiple inheritence On Dec 3, 2003, at 11:37, Robert Klemme wrote: >> You can build as complicated a mixin graph as you can a MI graph. The >> difference is that because mixins are modules, they don't have their >> own state, but instead parasitically use the state of the class into >> which they are mixed. > > U sure about that? > Yes. Doesn't your example actually illustrate the point? The module B uses an instance variable, but it is actually containing in the objects of the class that mixes in B. Anyway, to be honest the whole conversation is somewhat moot: it isn't really an issue of whether one solves another's problems. Both work, they do similar but not identical things, and each has a set of rules you have to understand to use them. Cheers Dave