]> gitweb.factorcode.org Git - factor.git/commitdiff
continuations: remove outdated comment
authorSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Sun, 27 Dec 2009 23:42:25 +0000 (12:42 +1300)
committerSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Sun, 27 Dec 2009 23:42:25 +0000 (12:42 +1300)
core/continuations/continuations.factor

index 8e14f4a26ba770b83def7f6b3fcbabc778a88bd1..02c129aefee0e75eaf01a2f1a39b01169c7f1200 100644 (file)
@@ -49,22 +49,6 @@ C: <continuation> 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