Dave Thomas wrote:

> If you try to generate the diamond inheritance pattern above using
> mixins:

<snip>

> You actually end up with a linear chain of pseudo superclasses:
>
>      Main -> M2 -> M1 -> Base

Ah, I see! So it's just a simple way of resolving ambiguities - last
method in wins, instance variables all sit in a flat space, and no
module gets in there more than once. Still might be problems, but at
least the behaviour is clear. And most of the time it'll work just fine.

I think I like it. Thanks!


Adam Spitz


Sent via Deja.com
http://www.deja.com/