University of Washington • CSE583 • D. Notkin © 2000
61
Continuations
lScheme supports all advanced control mechanisms (including looping) with one primitive called continuations
lA continuation is a procedure that can be called (with a result value) to do “the rest of the program”, exiting the current task
–Enables parameterization of a procedure by “what to do next”
–Enables having multiple return places, not just one normal return, for different outcomes