]> gitweb.factorcode.org Git - factor.git/commitdiff
tools.deploy.shaker: strip out call( and execute( runtime checking in a way that...
authorSlava Pestov <slava@shill.local>
Mon, 31 Aug 2009 21:48:10 +0000 (16:48 -0500)
committerSlava Pestov <slava@shill.local>
Mon, 31 Aug 2009 21:48:10 +0000 (16:48 -0500)
basis/tools/deploy/shaker/strip-call.factor

index d0593b6c150165c37208483cc5e81580249fe32f..0ecc22e4c0f6f073aebb5ca62bba1b5e00bd88c1 100644 (file)
@@ -1,10 +1,14 @@
 ! Copyright (C) 2009 Slava Pestov
 ! See http://factorcode.org/license.txt for BSD license.
-IN: tools.deploy.shaker.call
-
+USING: combinators.private kernel ;
 IN: combinators
-USE: combinators.private
 
-: call-effect ( word effect -- ) call-effect-unsafe ; inline
+: call-effect ( word effect -- ) call-effect-unsafe ;
+
+: execute-effect ( word effect -- ) execute-effect-unsafe ;
+
+IN: compiler.tree.propagation.call-effect
+
+: call-effect-unsafe? ( quot effect -- ? ) 2drop t ; inline
 
-: execute-effect ( word effect -- ) execute-effect-unsafe ; inline
\ No newline at end of file
+: execute-effect-unsafe? ( word effect -- ? ) 2drop t ; inline
\ No newline at end of file