Affiliation:
1. Dip. di Matematica ed Informatica Università di Udine I-33100 Udine, Italy
Abstract
In this paper we investigate, in the context of
functional prototype-based languages
, objects which might extend themselves upon receiving a message. The possibility for an object of extending its own "self", referred to by Cardelli, as a
self-inflicted
operation, is novel in the context of typed object-based languages. We present a sound type system for this calculus which guarantees that evaluating a well-typed expression will never yield a message-not-found run-time error. We give several examples which illustrate the increased expressive power of our system with respect to existing calculi of objects. The new type system allows also for a flexible
width-subtyping
, still permitting sound method override, and a limited form of object extension. The resulting calculus appears to be a good starting point for a rigorous mathematical analysis of class-based languages.
Publisher
Association for Computing Machinery (ACM)
Subject
Computer Graphics and Computer-Aided Design,Software
Reference24 articles.
1. G. Bell~. Some Remarks on Lambda Calculus of Objects. Technical report Dipartimento di Matematica ed Informatica Universit~ di Udine 1994. G. Bell~. Some Remarks on Lambda Calculus of Objects. Technical report Dipartimento di Matematica ed Informatica Universit~ di Udine 1994.
2. Lecture Notes in Computer Science;Bono V.,1997
3. Lecture Notes in Computer Science;Bono V.,1997
4. Lecture Notes in Computer Science;Bono V.,1996
Cited by
6 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献