A DENOTATIONAL APPROACH FOR TYPE-CHECKING IN OBJECT-ORIENTED PROGRAMMING-LANGUAGES

被引:1
|
作者
IERUSALIMSCHY, R
机构
[1] Departamento de Informática, Pontificia Universidade Católica
来源
COMPUTER LANGUAGES | 1993年 / 19卷 / 01期
关键词
SEMANTICS OF PROGRAMMING LANGUAGES; TYPE SYSTEMS; OBJECT ORIENTED PROGRAMMING;
D O I
10.1016/0096-0551(93)90037-2
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Starting with a pragmatical (but formal) definition of type in object-oriented languages, this paper proposes a method to test type safety in this kind of language. We say that a language is (type) safe if it ensures that, during the execution of a correct program, every message sent to an object is matched by an appropriate method. We define a ''typical'' object oriented programming language, featuring multiple inheritance, recursive types, and separation between specifications and implementations. Then, we give a formal definition for its type system, and a denotational semantics for the execution of the language, based on message passing. Finally, we formally prove that our language is type safe. Along the progress of the work, better understanding is gained about many problems related with type systems in object-oriented languages.
引用
收藏
页码:19 / 40
页数:22
相关论文
共 50 条