Handbook
Glossary
ifcc ( capture restore -- )
Vocabulary
continuations
Inputs
capture
a
quotation
with stack effect
( continuation -- )
restore
a
quotation
Outputs
None
Word description
Reifies a continuation from the point immediately after which this word returns, and passes it to
capture
. When the continuation is restored, execution resumes and
restore
is called.
See also
callcc0
,
continue
,
callcc1
,
continue-with
Definition
USING:
continuations.private
kernel
;
IN:
continuations
:
ifcc
( capture restore -- )
[
dummy-1
current-continuation
or*
]
2dip
[
dummy-2
]
prepose
if
;
inline