Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Continuation
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Short description|Representation of the control state of a computer program}} {{Other uses}} {{More citations needed|date=July 2010}} In [[computer science]], a '''continuation''' is an [[Abstraction (computer science)|abstract representation]] of the [[Control flow|control state]] of a [[computer program]]. A continuation implements ([[Reification (computer science)|reifies]]) the program control state, i.e. the continuation is a data structure that represents the computational process at a given point in the process's execution; the created data structure can be accessed by the programming language, instead of being hidden in the [[Run-time system|runtime environment]]. Continuations are useful for encoding other control mechanisms in programming languages such as [[Exception handling|exception]]s, [[Generator (computer science)|generators]], [[coroutine]]s, and so on. The "'''current continuation'''" or "continuation of the computation step" is the continuation that, from the perspective of running code, would be derived from the current point in a program's execution. The term ''continuations'' can also be used to refer to '''first-class continuations''', which are constructs that give a [[programming language]] the ability to save the execution state at any point and return to that point at a later point in the program, possibly multiple times.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)