Skip to main content

Type Inference for Nested Self Types

  • Conference paper
Types for Proofs and Programs (TYPES 2003)

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

Included in the following conference series:

  • 494 Accesses

Abstract

We address the issue of the decidability of the type inference problem for a type system of an object-oriented calculus with general selftypes. The fragment considered in the present paper is obtained by restricting the set of operators to method invocation only. The resulting system, despite its syntactical simplicity, is sufficiently complicated to merit the study of the intricate constraints emerging in the process of type reconstruction, and it can be considered as the core system with respect to typability for extensions with other operators. The main result of the paper is the decidability of type reconstruction, together with a certain form of a principal type property.

Research work conducted within the framework of Types WG Project IST-1999-29001.

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Abadi, M., Cardelli, L.: A Theory of Objects. Monographs in Computer Science. Springer, Heidelberg (1996)

    MATH  Google Scholar 

  2. Baader, F., Nipkow, T.: Term Rewriting and All That. Cambridge University Press, Cambridge (1998)

    Google Scholar 

  3. Bono, V.: Extensible Objects: a Tutorial. In: Priami, C. (ed.) GC 2003. LNCS, vol. 2874, pp. 57–87. Springer, Heidelberg (2003)

    Chapter  Google Scholar 

  4. Bono, V., Bugliesi, M.: Matching for the Lambda Calculus of Objects. Theoretical Computer Science 212(1–2), 101–140 (1999)

    Article  MATH  MathSciNet  Google Scholar 

  5. Bono, V., Bugliesi, M., Crafa, S.: Typed Interpretations of Extensible Objects. ACM Transactions on Computational Logic 3(4), 562–603 (2002)

    Article  MathSciNet  Google Scholar 

  6. Bracha, G., Odersky, M., Stoutamire, D., Wadler, P.: Making the future safe for the past: Adding genericity to the Java programming language. In: Proc. of OOPSLA 1998, vol. 33(10), pp. 183–200 (1998)

    Google Scholar 

  7. Bruce, K.B.: A paradigmatic object-oriented programming language: Design, static typing and semantics. Journal of Functional Programming 4(2), 127–206 (1994)

    Article  MATH  MathSciNet  Google Scholar 

  8. Bruce, K.B.: Foundations of Object-Oriented Languages–Types and Semantics. The MIT Press, Cambridge (2002)

    Google Scholar 

  9. Bugliesi, M., Pericas, S.: Depth subtyping and type inference for object calculi. Information and Computation 177(1), 2–27 (2002)

    Article  MATH  MathSciNet  Google Scholar 

  10. Di Gianantonio, P., Honsell, F., Liquori, L.: A Lambda Calculus of Objects with Selfinflicted Extension. In: Proc. of ACM-SIGPLAN OOPSLA, pp. 166–178. ACM Press, New York (1998)

    Google Scholar 

  11. Fisher, K., Honsell, F., Mitchell, J.C.: A lambda calculus of objects and method specialization. Nordic Journal of Computing 1(1), 3–37 (1994)

    MATH  MathSciNet  Google Scholar 

  12. Henglein, F.: Breaking through the n3 barrier: Faster object type inference. Theory and Practice of Object Systems (TAPOS) 5(1), 57–72 (1999)

    Article  Google Scholar 

  13. Hense, A.V.: Polymorphic Type Inference for Object-Oriented Programming Languages. Pirrot Verlag (1994)

    Google Scholar 

  14. Mitchell, J.C.: Toward a typed foundation for method specialization and inheritance. In: Proc. of ACM Symp. POPL, pp. 109–124. ACM Press, New York (1990)

    Google Scholar 

  15. Palsberg, J.: Efficient inference of object types. Information and Computation 123(2), 198–209 (1995)

    Article  MATH  MathSciNet  Google Scholar 

  16. Palsberg, J., Jim, T.: Type inference with simple selftypes is NP-complete. Nordic Journal of Computing 4(3), 259–286 (1997)

    MATH  MathSciNet  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2004 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Bono, V., Tiuryn, J., Urzyczyn, P. (2004). Type Inference for Nested Self Types. In: Berardi, S., Coppo, M., Damiani, F. (eds) Types for Proofs and Programs. TYPES 2003. Lecture Notes in Computer Science, vol 3085. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-24849-1_7

Download citation

  • DOI: https://doi.org/10.1007/978-3-540-24849-1_7

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-22164-7

  • Online ISBN: 978-3-540-24849-1

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics