Propagating Class and Method Combination
Propagating Class and Method Combination
复制标题
传播类和方法组合
DOI:
10.1007/3-540-48743-3_4
复制
发表时间:
1999
期刊:
影响因子:
--
通讯作者:
Erik Ernst
中科院分区:
文献类型:
--
作者:
Erik Ernst
This paper presents a mixin based class and method combination mechanism with block structure propagation. Traditionally, mixins can be composed to form new classes, possibly merging the implementations of methods (as in CLOS). In our approach, a class or method combination operation may cause any number of implicit combinations. For example, it is possible to specify separate aspects of a family of classes, and then combine several aspects into a full-fledged class family. The combination expressions would explicitly combine whole-family aspects, and by propagation implicitly combine the aspects for each member of the class family, and again by propagation implicitly compose each method from its aspects. As opposed to CLOS, this is type-checked statically; and as opposed to other systems for advanced class combination/ merging/weaving, it is integrated directly in the language, ensuring a clear semantics and a seamless interaction with the type system. Moreover, the basic mechanism used in the combination, linearization, is formalized and generalized compared to previous presentions.
DOI:
10.1007/bfb0053381
发表时间:
1997-01-01
期刊:
ECOOP'97: OBJECT-ORIENTED PROGRAMMING
影响因子:
--
作者:
Kiczales, G;Lamping, J;Irwin, J
通讯作者:
Irwin, J