]> gitweb.factorcode.org Git - factor.git/commitdiff
continuations: add typing.
authorJohn Benediktsson <mrjbq7@gmail.com>
Sat, 28 Jul 2012 02:16:31 +0000 (19:16 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Sat, 28 Jul 2012 02:16:31 +0000 (19:16 -0700)
core/continuations/continuations.factor

index 0d0c41c72dc6497f2982ff53302afe022ef627da..249cc4c161544f5739b1bc1beccea93c5e0bfd63 100644 (file)
@@ -1,7 +1,7 @@
 ! Copyright (C) 2003, 2011 Slava Pestov.
 ! See http://factorcode.org/license.txt for BSD license.
-USING: accessors assocs combinators combinators.private kernel
-kernel.private make namespaces sequences vectors ;
+USING: accessors arrays assocs combinators combinators.private
+kernel kernel.private make namespaces sequences vectors ;
 IN: continuations
 
 : with-datastack ( stack quot -- new-stack )
@@ -35,7 +35,12 @@ SYMBOL: restarts
 
 PRIVATE>
 
-TUPLE: continuation data call retain name catch ;
+TUPLE: continuation
+{ data array }
+{ call callstack }
+{ retain array }
+{ name vector }
+{ catch vector } ;
 
 C: <continuation> continuation