A reliable and flexible type system for object-oriented programming

被引:0
作者
Dodani, M [1 ]
Tsai, CS [1 ]
机构
[1] UNIV IOWA,CTR COMP AIDED DESIGN,IOWA CITY,IA 52242
来源
OBJECT ORIENTED SYSTEMS | 1996年 / 3卷 / 02期
关键词
object-oriented programming; object-oriented languages; denotational semantics; type structure; formal definitions and theory; type checking; class hierarchy; abstract classes;
D O I
暂无
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
The inheritance mechanism facilitates incremental modification and is the basis for the many advantages and popularity of the object-oriented paradigm. In particular, inheritance is overloaded to describe the different relationships that are possible between classes. Such overloading requires the development of a semantic model that facilitates 'safe' redefinitions between classes. Current approaches use type systems to ensure 'safe' redefinitions, and are not capable of handling all the different uses of inheritance naturally. This paper develops a uniform type system built on a hierarchy which distinguishes between abstract and concrete classes. It is shown how such a structure on the hierarchy can be exploited to describe all common uses of inheritance in a natural way. Finally, the necessary formalisms to define abstract and concrete classes and their relationships, the type system along with the static type checker, and the semantic model to interpret type safety are developed.
引用
收藏
页码:87 / 121
页数:35
相关论文
共 24 条
[1]  
AMERICA P, ECOOP 87, P234
[2]  
[Anonymous], 1983, SMALLTALK 80 LANGUAG
[3]  
[Anonymous], ACM COMPUTING SURVEY
[4]  
BOBROW DG, 1988, SIGPLAN NOTICES, V23
[5]  
CANNING P, STL8821 HP
[6]  
Canning Peter, 1989, P C FUNCT PROGR LANG
[7]  
CARDELLI L, 1984, LECT NOTES COMPUT SC, V173, P51
[8]  
COOK W, OOPSLA 89, P433
[9]  
COOK W, 1990, 17TH ACM S PRINC PRO, P125
[10]  
DANFORTH S, 1988, ACM COMPUT SURV, V20, P29