Metaclass compatibility

  • Authors:
  • N. Graube

  • Affiliations:
  • Equipe Mixte L.I.T.P. & Rank Xerox France, Universitéé Paris VI, Tour 45-55 Porte 209, 4, Place Jussieu, 75252 Paris cedex 05, France

  • Venue:
  • OOPSLA '89 Conference proceedings on Object-oriented programming systems, languages and applications
  • Year:
  • 1989

Quantified Score

Hi-index 0.00

Visualization

Abstract

Metaclasses provide control of object description, method compilation and more generally class behaviour. Consequently, they have been widely used in languages such as Smalltalk-80 or more recently CLOS by both users and implementers. Due to their powerful control of instances, careless inheritance of classes with different metaclasses can lead to unsound or inefficient implementations of instance methods. Using examples, we will pin-point these problems. Then we will introduce compatibility rules which need to be fulfilled by metaclasses of inherited classes in order to allow reasonable instance method description.