Modules and Class Refinement: A Meta-modeling Approach to Object-Oriented Programming

Abstract : With object-oriented programming, classes and inheritance have sometimes been considered as a definitive answer to the need for modularity and reusability in programming languages. However, this view of object-oriented languages is often considered as too limited and many authors have claimed that classes do not make appropriate modules. On the one hand, separate concerns are generally distributed on a set of closely related classes, while on the other, a class implements several unrelated concerns. The so-called expression problem stresses this limitation of the traditional view on object-oriented programming, which makes it easy to add new classes but quite impossible to add concerns to previously defined classes. Accordingly, recent research has yielded a lot of proposals addressing these commonly agreed needs. These proposals are based on various notions, e.g. virtual classes, higher-order hierarchies, nested inheritance, mixin layers or classboxes. All of these proposals are very similar and significantly different, so comparing and evaluating them is not easy, and selecting or designing the ‘best' one is a challenge. Moreover, an entire research field has emerged, i.e. aspect-oriented programming, dedicated to separation of crosscutting concerns. In this paper, we propose two coupled notions of modules and class refinement which provide the required modularity and reusability and represent a pretty good response to the expression problem. However, the goal of this paper is not only to propose these new notions—they are actually close to previous propositions, though somewhat different—but also to base this proposal on very simple and intuitive notions that already underlie object-oriented languages. Meta-modeling is the key of our approach and we use it as a sound criterion to select a precise specification among a large state space. We first propose a meta-model of classes and properties (i.e. methods and attributes), which provides clear insight into inheritance, especially when multiple. The point is that modules and module dependence are specified by a second meta-model which is isomorphic to the first one. Finally, this proposal is not only based on conceptual and theoretical considerations. Modules and class refinement are distinctive features of a new object-oriented language, Prm, and they are intensively used in the organization of its libraries and tools.
Type de document :
RR 07021, 2007, pp.66
Liste complète des métadonnées

Littérature citée [102 références]  Voir  Masquer  Télécharger
Contributeur : Roland Ducournau <>
Soumis le : jeudi 18 octobre 2007 - 11:24:02
Dernière modification le : jeudi 11 janvier 2018 - 06:26:11
Document(s) archivé(s) le : lundi 24 septembre 2012 - 13:40:40


  • HAL Id : lirmm-00180214, version 1



Roland Ducournau, Floréal Morandat, Jean Privat. Modules and Class Refinement: A Meta-modeling Approach to Object-Oriented Programming. RR 07021, 2007, pp.66. 〈lirmm-00180214〉



Consultations de la notice


Téléchargements de fichiers