An imperative type hierarchy with partial products | SpringerLink
Skip to main content

An imperative type hierarchy with partial products

  • Communications
  • Conference paper
  • First Online:
Mathematical Foundations of Computer Science 1989 (MFCS 1989)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 379))

Abstract

A type hierarchy for a programming language defines an ordering on the types such that any application for small types may be reused for all larger types. The imperative facet makes this non-trivial; the straight-forward definitions will yield an inconsistent system. We introduce a new type constructor, the partial product, and show how to define a consistent hierarchy in the context of fully recursive types. A simple polymorphism is derived by introducing a notion of placeholder types. By extending the partial product types to include structural invariants we obtain a particularly appropriate notation for defining recursive types, that is superior to traditional type sums and products. We show how the ordering on types extends to an ordering on types with invariants. We allow the use of least upper bounds in type definitions and show how to compute upper bounds of invariants.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Similar content being viewed by others

References

  1. H. Barendregt. “The Lambda Calculus, Its Syntax and Semantics.”, North Holland, 1984.

    Google Scholar 

  2. L. Cardelli. “A semantics of multiple inheritance.” In Semantics of Data Types, LNCS 173, Springer-Verlag 1984.

    Google Scholar 

  3. L. Cardelli. “Amber.” Proceedings of the Treizieme Ecole de Printemps d'Informatique Theorique, May 1985.

    Google Scholar 

  4. O.J. Dahl, B. Myrhaug, K. Nygaard, “Simula Information, Common Base Language.”, Norwegian Computing Center, October 1970.

    Google Scholar 

  5. J.C. Reynolds, “Three approaches to type structure.”, In Mathematical Foundations of Software Development, LNCS 185, Springer-Verlag, 1985.

    Google Scholar 

  6. R.D. Tennent, “Denotational Semantics of Algol-Like Languages.”, To appear in Handbook of Logic in Computer Science, Vol.II, Oxford University Press.

    Google Scholar 

  7. N. Wirth, “Type Extensions.”, In Transactions on Programming Languages and Systems, Vol.10, No.2, 1988.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Antoni Kreczmar Grazyna Mirkowska

Rights and permissions

Reprints and permissions

Copyright information

© 1989 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Schmidt, E.M., Schwartzbach, M.I. (1989). An imperative type hierarchy with partial products. In: Kreczmar, A., Mirkowska, G. (eds) Mathematical Foundations of Computer Science 1989. MFCS 1989. Lecture Notes in Computer Science, vol 379. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-51486-4_92

Download citation

  • DOI: https://doi.org/10.1007/3-540-51486-4_92

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-51486-2

  • Online ISBN: 978-3-540-48176-8

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics