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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
Abadi, M., Cardelli, L.: A Theory of Objects. Springer (1996)
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)
Amadio, R.M., Curien, P.L.: Domains and Lambda-Calculi. Cambridge University Press (1998)
Barendregt, H.: The Lambda Calculus, Its Syntax and Semantics. North Holland (1985)
Danby, O., Filinski, A.: Abstracting control. In: Proceedings of the 1990 ACM Conference on LISP and Functional Programming, pp. 151–160 (1990)
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)
Felleisen, M., Friedman, D.P., Kohlbecker, E., Duba, B.F.: A syntactic theory of sequential control. Theoretical Computer Science 52(3) (1987)
Felleisen, M., Hieb, R.: A revised report on the syntactic theory of sequential control and state. Theoretical Computer Science 103(2) (1992)
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)
Nisizaki, S., Ikeda, R.: Object calculus with first-class continuations. In: Proceedings of the 13th International Conference on Software Engineering and Application (2009)
Plotkin, G.: Call-by-name, call-by-value, and the λ-calculus. Theor. Comput. Sci. 1, 125–159 (1975)
Sperber, M., Dybvig, R.K., Flatt, M., Van Straaten, A.: Revised6 Report on the Algorithmic Language Scheme. Cambridge University Press (2010)
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights 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)