callcc1 ( quot -- obj )
Factor handbook » The language » Continuations

Prev:callcc0 ( quot -- )
Next:continue ( continuation -- * )


Vocabulary
continuations

Inputs
quota quotation with stack effect ( continuation -- initial )


Outputs
objan object provided when resuming the continuation or initial


Word description
Applies the quotation to the current continuation, which is reified from the point immediately after which this word would return. Every time the continuation is resumed using continue-with and a new obj, execution continues with obj on the stack. If quot returns, execution continues with initial on the stack.

See also
callcc0, continue, continue-with, ifcc

Definition