Make more code infer

db4
Slava Pestov 2009-04-12 16:08:54 -05:00
parent c4be8bd65a
commit 5aab0078a0
4 changed files with 5 additions and 5 deletions

View 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: {

View 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 -- )

View 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 ;

View File

@ -4,7 +4,7 @@ ui.gestures ;
IN: ui.operations
: $operations ( element -- )
>quotation call
>quotation call( -- obj )
f operations>commands
command-map. ;