callcc0 ( quot -- )
Factor handbook » The language » Continuations

Prev:ifcc ( capture restore -- obj )
Next:callcc1 ( quot -- obj )


Vocabulary
continuations

Inputs
quota quotation with stack effect ( continuation -- )


Outputs
None

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, execution continues. The continue word is usually used to resume the continuation because any new value is actually just dropped. If quot returns, execution also continues.

See also
continue, callcc1, continue-with, ifcc

Definition