Hi,
In message "[ruby-talk:7252] Multiple inheritance and mixins"
on 00/12/15, Adam Spitz <adamspitz / home.com> writes:
|I'm having trouble understanding the difference between Ruby's mixins
|and "ordinary" multiple inheritance. Can someone explain to me how
|mixins are different from, say, C++'s version of multiple inheritance?
|Which of C++'s problems has Ruby avoided? Is there anything you can do
|with multiple inheritance that you can't do with mixins?
Mix-in is a restricted MI. You can't have shared superclass like
A
/ \
B C
\ /
D
which often cause problems. Since mix-in is a subset, you can do
mix-in by MI, of course.
matz.