Scalable extensibility via nested inheritance
Authors:
Open Access
- 1 October 2004
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in ACM SIGPLAN Notices
- Vol. 39 (10) , 99-115
Abstract
Inheritance is a useful mechanism for factoring and reusing code. However, it has limitations for building extensible systems. We describe nested inheritance, a mechanism that addresses some of the limitations of ordinary inheritance and other code reuse mechanisms. Using our experience with an extensible compiler framework, we show how nested inheritance can be used to construct highly extensible software frameworks. The essential aspects of nested inheritance are formalized in a simple object-oriented language with an operational semantics and type system. The type system of this language is sound, so no run-time type checking is required to implement it and no run-time type errors can occur. We describe our implementation of nested inheritance as an unobtrusive extension of the Java language, called Jx. Our prototype implementation translates Jx code to ordinary Java code, without duplicating inherited code.Keywords
This publication has 16 references indexed in Scilit:
- Higher-Order HierarchiesLecture Notes in Computer Science, 2003
- A Nominal Theory of Objects with Dependent Types2003
- On Inner ClassesInformation and Computation, 2002
- Jiazzi2001
- Extensible algebraic datatypes with defaults2001
- Featherweight JavaACM Transactions on Programming Languages and Systems, 2001
- MultiJavaACM SIGPLAN Notices, 2000
- Aspect-oriented programming1997
- A Syntactic Approach to Type SoundnessInformation and Computation, 1994
- Mixin-based inheritance1990