From 042a074ac63a5ae5011bc4ef1e0b63bf99e33b1b Mon Sep 17 00:00:00 2001 From: Slava Pestov Date: Mon, 28 Dec 2009 12:42:25 +1300 Subject: [PATCH] continuations: remove outdated comment --- core/continuations/continuations.factor | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/core/continuations/continuations.factor b/core/continuations/continuations.factor index 8e14f4a26b..02c129aefe 100644 --- a/core/continuations/continuations.factor +++ b/core/continuations/continuations.factor @@ -49,22 +49,6 @@ C: continuation } cleave ; : ifcc ( capture restore -- ) - #! After continuation is being captured, the stacks looks - #! like: - #! ( f continuation r:capture r:restore ) - #! so the 'capture' branch is taken. - #! - #! Note that the continuation itself is not captured as part - #! of the datastack. - #! - #! BUT... - #! - #! After the continuation is resumed, (continue-with) pushes - #! the given value together with f, - #! so now, the stacks looks like: - #! ( value f r:capture r:restore ) - #! Execution begins right after the call to 'continuation'. - #! The 'restore' branch is taken. [ dummy-1 continuation ] 2dip [ dummy-2 ] prepose ?if ; inline : callcc0 ( quot -- ) [ drop ] ifcc ; inline