Continuations whose captured frames’ roots the collector marks while they wait.
The engine’s call/cc stays bare; this is the door for a continuation that waits – a generator, a coroutine.
ContA continuation the collector can see into: call/cc with the captured frames’ roots marked while it waits.
(Cont capture f) replaces (call/cc f) wherever a continuation outlives the frames that captured it – a generator, a coroutine.
%callccStatic field: data held by Cont itself, not by its instances.
%tree-mark!Static field: data held by Cont itself, not by its instances.
%heap-offStatic field: data held by Cont itself, not by its instances.
%type-offStatic field: data held by Cont itself, not by its instances.
%data-offStatic field: data held by Cont itself, not by its instances.
%type-cellThe marker type, made on the first capture
Static field: data held by Cont itself, not by its instances.
(Cont capture f)call/cc, with the captured frames’ roots marked while the continuation waits.
Parameters:
CALLABLE — Receives the continuation, a procedure of the value to passReturns: ANY — What f answers, or the value the continuation was invoked with
(Cont %marker k)(Cont %state k)(Cont %type)(Cont %mark m flags)