Many Object Oriented Programming Languages provide reflective features which may be used to control the interpretive mechanism of the language. Often these features are defined with respect to a golden braid consisting of objects classes and meta-classes. This report reviews the Smalltalk golden braid and generalize it for multiple inheritance leading to choices between many different inheritance strategies. The reflective features of Smalltalk cannot affect the basic mechanisms of inheritance and so an arbitrary choice must be made for multiple inheritance. A language is described in which the reflective features of Smalltalk are extended so as to allow programmer defined inheritance strategies.
翻译:许多以目标为主的编程语言提供了可用于控制语言解释机制的反射特征,这些特征往往被定义为由对象类别和元类组成的金色边框,本报告审查了小谈金色边框,并概括了多种继承,导致许多不同的继承战略之间的选择,小型会谈的反射特征不能影响基本的继承机制,因此必须为多重继承做出任意选择,描述的一种语言是扩展小谈的反射特征,以便让程序员能够制定明确的继承战略。