Что имеется в виду, когда mixin'ы в языке Scala называются симметричными (symmetric).
См.
Scala,
Scala overview.
Здравствуйте, nikov, Вы писали:
N>Что имеется в виду, когда mixin'ы в языке Scala называются симметричными (symmetric).
Видимо, множественное наследование.
... << RSDN@Home 1.1.4 stable SR1 rev. 568>>
Здравствуйте, nikov, Вы писали:
N>Что имеется в виду, когда mixin'ы в языке Scala называются симметричными (symmetric).
Google, первая ссылка:
http://nkari.uw.hu/Tutorials/CPPTips/mixins
The difference between symmetric and asymmetric mixins is subtle
but important. In symmetric mixins, mixin parents are equally important. For
example, a graphic_task class is both a graphic object and a tasked object
and neither attribute is important. In asymmetric mixins one parent is more
important than the other. In essence, one parent is the "real" class while
the other is an adjective. So in a bordered_window class, the main class
is the window while the adjective class is the bordered class.