[Scala] symmetric mixins
От: nikov США http://www.linkedin.com/in/nikov
Дата: 01.04.07 18:25
Оценка:
Что имеется в виду, когда mixin'ы в языке Scala называются симметричными (symmetric).
См. Scala, Scala overview.
Re: [Scala] symmetric mixins
От: nikov США http://www.linkedin.com/in/nikov
Дата: 24.10.07 07:06
Оценка:
up
Re: [Scala] symmetric mixins
От: lomeo Россия http://lomeo.livejournal.com/
Дата: 24.10.07 11:08
Оценка:
Здравствуйте, nikov, Вы писали:

N>Что имеется в виду, когда mixin'ы в языке Scala называются симметричными (symmetric).


Видимо, множественное наследование.
... << RSDN@Home 1.1.4 stable SR1 rev. 568>>
Re: [Scala] symmetric mixins
От: z00n  
Дата: 24.10.07 19:51
Оценка: 9 (1)
Здравствуйте, 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.

 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.