]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/benchmark/typecheck2/typecheck2.factor
Fixing everything for mandatory stack effects
[factor.git] / extra / benchmark / typecheck2 / typecheck2.factor
index 0dfcc17c66491fb63c6c65747192306ec2c76f59..f408389e694d2a8630a5a4270324da094f236961 100644 (file)
@@ -3,10 +3,10 @@ IN: benchmark.typecheck2
 
 TUPLE: hello n ;
 
-: hello-n* dup tuple? [ 3 slot ] [ 3 throw ] if ;
+: hello-n* ( obj -- value ) dup tuple? [ 3 slot ] [ 3 throw ] if ;
 
-: foo 0 100000000 [ over hello-n* + ] times ;
+: foo ( obj -- obj n ) 0 100000000 [ over hello-n* + ] times ;
 
-: typecheck-main 0 hello boa foo 2drop ;
+: typecheck-main ( -- ) 0 hello boa foo 2drop ;
 
 MAIN: typecheck-main