An efficient class and object encoding

Authors
Citation
N. Glew, An efficient class and object encoding, ACM SIGPL N, 35(10), 2000, pp. 311-324
Citations number
49
Categorie Soggetti
Computer Science & Engineering
Journal title
ACM SIGPLAN NOTICES
ISSN journal
15232867 → ACNP
Volume
35
Issue
10
Year of publication
2000
Pages
311 - 324
Database
ISI
SICI code
1523-2867(200010)35:10<311:AECAOE>2.0.ZU;2-G
Abstract
An object encoding translates a language with object primitives to one with out. Similarly, a class encoding translates classes into other primitives. Both are important theoretically for comparing the expressive power of lang uages and for transferring results from traditional languages to those with objects and classes. Both are also important foundations for the implement ation of object-oriented languages as compilers typically include a phase t hat performs these translations. This paper describes a language with a primitive notion of classes and obje cts and presents an encoding of this language into one with records and fun ctions. The encoding uses two techniques often used in compilers for single -inheritance class-based object-oriented languages: the self-application se mantics and the method-table technique. To type the output of the encoding, the encoding uses a new formulation of self quantifiers that is more power ful than previous approaches.