]> gitweb.factorcode.org Git - factor.git/commitdiff
boxes: add stack-effect info to if-box?.
authorJohn Benediktsson <mrjbq7@gmail.com>
Tue, 23 Jan 2018 04:19:57 +0000 (20:19 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Tue, 23 Jan 2018 04:19:57 +0000 (20:19 -0800)
basis/boxes/boxes.factor

index 25f2b963b414cba8cbcb345b628ddf844ad15609..fdf4e966b57fd0f7820c0082dcabee8eeaded837 100644 (file)
@@ -31,5 +31,5 @@ PRIVATE>
 : ?box ( box -- value/f ? )
     dup occupied>> [ box-unsafe> t ] [ drop f f ] if ; inline
 
-: if-box? ( box quot -- )
+: if-box? ( box quot: ( value -- ) -- )
     [ ?box ] dip [ drop ] if ; inline