Static Typing for Object-Oriented Programming

Forfattere

  • Jens Palsberg
  • Michael I. Schwartzbach

DOI:

https://doi.org/10.7146/dpb.v20i355.6585

Resumé

We develop a theory of statically typed object-oriented languages. It represents classes as labeled, regular trees, types as finite sets of classes, and subclassing as a partial order on trees. We show that our subclassing order strictly generalizes inheritance, and that a novel genericity mechanism arises as an order-theoretic complement. This mechanism, called class substitution, is pragmatically useful and can be implemented efficiently.

Downloads

Publiceret

1991-06-01

Citation/Eksport

Palsberg, J., & Schwartzbach, M. I. (1991). Static Typing for Object-Oriented Programming. DAIMI Report Series, 20(355). https://doi.org/10.7146/dpb.v20i355.6585