]> gitweb.factorcode.org Git - factor.git/commitdiff
Make more code infer
authorSlava Pestov <slava@shill.local>
Sun, 12 Apr 2009 21:08:54 +0000 (16:08 -0500)
committerSlava Pestov <slava@shill.local>
Sun, 12 Apr 2009 21:08:54 +0000 (16:08 -0500)
basis/ui/backend/cocoa/tools/tools.factor
basis/ui/gadgets/presentations/presentations.factor
basis/ui/gadgets/slots/slots.factor
basis/ui/operations/operations-docs.factor

index 46ecc1a37f4db36812a48d74ec3624697a3d9d63..eb8823b10781803c1b40db4b0632b2266780ad38 100644 (file)
@@ -70,7 +70,7 @@ CLASS: {
 ! Service support; evaluate Factor code from other apps
 :: do-service ( pboard error quot -- )
     pboard error ?pasteboard-string
-    dup [ quot call ] when
+    dup [ quot call( string -- result/f ) ] when
     [ pboard set-pasteboard-string ] when* ;
 
 CLASS: {
index 621e7006c91fdac4dfe5fbc7492ce1f7cb5543b0..a0799c7b86e2d9e3e2577b060f8f3a4b088c022f 100644 (file)
@@ -10,7 +10,7 @@ IN: ui.gadgets.presentations
 TUPLE: presentation < button object hook ;
 
 : invoke-presentation ( presentation command -- )
-    [ [ dup hook>> call ] [ object>> ] bi ] dip
+    [ [ dup hook>> call( presentation -- ) ] [ object>> ] bi ] dip
     invoke-command ;
 
 : invoke-primary ( presentation -- )
index 592900d0cbf6867141f511e1c41302f6341ca5cf..00023626a7e10cc27a9459656767476818156400 100644 (file)
@@ -23,14 +23,14 @@ TUPLE: slot-editor < track ref close-hook update-hook text ;
 } define-command
 
 : close ( slot-editor -- )
-    dup close-hook>> call ;
+    dup close-hook>> call( slot-editor -- ) ;
 
 \ close H{
     { +description+ "Close the slot editor without saving changes." }
 } define-command
 
 : close-and-update ( slot-editor -- )
-    [ update-hook>> call ] [ close ] bi ;
+    [ update-hook>> call( -- ) ] [ close ] bi ;
 
 : slot-editor-value ( slot-editor -- object )
     text>> control-value parse-fresh first ;
index cfec6613b1427e97fcd9159778e3902e1beed5d7..4114a2c3b24c20a099022c85d4dff53b5a8c81cd 100644 (file)
@@ -4,7 +4,7 @@ ui.gestures ;
 IN: ui.operations
 
 : $operations ( element -- )
-    >quotation call
+    >quotation call( -- obj )
     f operations>commands
     command-map. ;