]> gitweb.factorcode.org Git - factor.git/commitdiff
functors: C: no longer needs a stack effect.
authorDoug Coleman <doug.coleman@gmail.com>
Tue, 25 Jul 2017 00:29:31 +0000 (19:29 -0500)
committerDoug Coleman <doug.coleman@gmail.com>
Sun, 20 Aug 2017 16:36:56 +0000 (11:36 -0500)
basis/functors/functors-tests.factor
basis/functors/functors.factor

index e52ff7d04e8cfc6f81d47ee103d874f67ef80bf9..f5034f42ba2a1be6fe89bbf8c163c95cdf9d035d 100644 (file)
@@ -14,7 +14,7 @@ WHERE
 
 TUPLE: B { value T } ;
 
-C: <B> B ( T -- B )
+C: <B> B
 
 ;FUNCTOR>
 
index 909ae3827977f286c2421679366fffae37499bb5..79aff0d16efab044542a76d2865c94f5672784a7 100644 (file)
@@ -84,9 +84,10 @@ FUNCTOR-SYNTAX: M:
 
 FUNCTOR-SYNTAX: C:
     scan-param suffix!
-    scan-param suffix!
-    scan-effect
-    [ [ [ boa ] curry ] append! ] dip suffix!
+    scan-param [
+        suffix!
+        [ [ boa ] curry ] append!
+    ] keep suffix! \ boa-effect suffix!
     \ define-declared* suffix! ;
 
 FUNCTOR-SYNTAX: :