Skip to main content

Modifiable Continuation in Object Calculus

  • Conference paper
Theory and Practice of Computation

Abstract

First-class continuations have proven convenient for expressing a variety of control structures. In existing programming languages and formal systems, continuations are usually reified as first-class functions. This means that simple calling is the only operation applicable to continuations. To investigate the benefits of other operations on first-class continuations, we propose a variation of the object calculus in which we can formalize continuations that allow contents to be accessed and/or modified. The object calculus is a series of formal systems proposed by Abadi and Cardelli that formulates object-oriented computation. The sigma-calculus is the simplest variation of such calculi. Nishizaki et al. extended the sigma-calculus by adding first-class continuations that are formalized as Plotkin and Felleisen-style evaluation contexts. In our calculus, which is a successor of this extended sigma-calculus, continuations are represented as mutable objects. Thus, the contents of continuations can be accessed/modified using normal operations on objects. This paper presents the syntax and operational semantics of the calculus, and provides examples describing the usage of the modifiable continuations.

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. Springer (1996)

    Google Scholar 

  2. Abadi, M., Cardelli, L.: A Theory of Primitive Objects — Untyped and First-Order Systems. In: Hagiya, M., Mitchell, J.C. (eds.) TACS 1994. LNCS, vol. 789, pp. 296–320. Springer, Heidelberg (1994)

    Chapter  Google Scholar 

  3. Amadio, R.M., Curien, P.L.: Domains and Lambda-Calculi. Cambridge University Press (1998)

    Google Scholar 

  4. Barendregt, H.: The Lambda Calculus, Its Syntax and Semantics. North Holland (1985)

    Google Scholar 

  5. Danby, O., Filinski, A.: Abstracting control. In: Proceedings of the 1990 ACM Conference on LISP and Functional Programming, pp. 151–160 (1990)

    Google Scholar 

  6. De Bruijn, N.G.: Lambda calculus notation with nameless dummies: A tool for automatic formula manipulation, with application to the church-rosser theorem. Indagationes Mathematicae 34, 381–392 (1972)

    Google Scholar 

  7. Felleisen, M., Friedman, D.P., Kohlbecker, E., Duba, B.F.: A syntactic theory of sequential control. Theoretical Computer Science 52(3) (1987)

    Google Scholar 

  8. Felleisen, M., Hieb, R.: A revised report on the syntactic theory of sequential control and state. Theoretical Computer Science 103(2) (1992)

    Google Scholar 

  9. Kameyama, Y., Hasegawa, M.: A sound and complete axiomatization for delimited continuations. In: Proceedings of the Eighth ACM International Conference on Functional Programming (ICFP 2003), pp. 177–188 (2003)

    Google Scholar 

  10. Nisizaki, S., Ikeda, R.: Object calculus with first-class continuations. In: Proceedings of the 13th International Conference on Software Engineering and Application (2009)

    Google Scholar 

  11. Plotkin, G.: Call-by-name, call-by-value, and the λ-calculus. Theor. Comput. Sci. 1, 125–159 (1975)

    Article  MathSciNet  MATH  Google Scholar 

  12. Sperber, M., Dybvig, R.K., Flatt, M., Van Straaten, A.: Revised6 Report on the Algorithmic Language Scheme. Cambridge University Press (2010)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2012 Springer Tokyo

About this paper

Cite this paper

Kuma, E., Nishizaki, Sy., Watanabe, T. (2012). Modifiable Continuation in Object Calculus. In: Nishizaki, Sy., Numao, M., Caro, J., Suarez, M.T. (eds) Theory and Practice of Computation. Proceedings in Information and Communications Technology, vol 5. Springer, Tokyo. https://doi.org/10.1007/978-4-431-54106-6_13

Download citation

  • DOI: https://doi.org/10.1007/978-4-431-54106-6_13

  • Publisher Name: Springer, Tokyo

  • Print ISBN: 978-4-431-54105-9

  • Online ISBN: 978-4-431-54106-6

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics