Conference on Object Oriented Programming Systems Languages and Aplications
 
Proceedings of the European conference on object-oriented programming on Object-oriented programming systems, languages, and applications
October 21 - 25, 1990, Ottawa Canada


Strong typing of object-oriented languages revisited
Pages 140-150

Ole Lehrmann Madsen, Boris Magnusson and Birger Mølier-Pedersen

metadata:    
full text:   1061 KB

[ Discuss this Article | Find Related Articles | Add to Binder ]

ABSTRACT

This paper is concerned with the relation between subtyping and subclassing and their influence on programming language design. Traditionally subclassing as introduced by Simula has also been used for defining a hierarchical type system. The type system of a language can be characterized as strong or weak and the type checking mechanism as static or dynamic. Parameterized classes in combination with a hierarchical type-system is an example of a language construct that is known to create complicated type checking situations. In this paper these situations are analyzed and several different solutions are found. It is argued that an approach with a combination of static and dynamic type checking gives a reasonable balance also here. It is also concluded that this approach makes it possible to base the type system on the class/subclass mechanism.


INDEX TERMS

Categories and Subject Descriptors:
Software -Programming Techniques - General (D.1.0); Theory of Computation -Logics and Meanings of Programs - Studies of Program Constructs (F.3.3): Type structure; Theory of Computation -Mathematical Logic and Formal Languages - Formal Languages (F.4.3);

General Terms:
Design, Languages