Continuation implementation details
Factor handbook > The language > Continuations

Prev:with-return ( quot -- )


A continuation is simply a tuple holding the contents of the five stacks:
continuation

>continuation< ( continuation -- data call retain name catch )


The five stacks can be read and written:
get-datastack ( -- array )

set-datastack ( array -- )

get-retainstack ( -- array )

set-retainstack ( array -- )

get-callstack ( -- callstack )

set-callstack ( callstack -- * )

get-namestack ( -- namestack )

set-namestack ( namestack -- )

get-catchstack ( -- catchstack )

set-catchstack ( catchstack -- )