Handbook
Glossary
execute(
Factor handbook
»
The language
»
Combinators
»
Fundamental combinators
Prev:
call(
Next:
call-effect ( quot effect -- )
Vocabulary
syntax
Syntax
execute( stack -- effect )
Word description
Calls the word on the top of the stack, asserting that it has the given stack effect. The word does not need to be known at compile time.
Examples
IN: scratchpad : eat ( -- ) ; : sleep ( -- ) ; : hack ( -- ) ; { eat sleep hack } [ execute( -- ) ] each
See also
execute
Definition
USING:
combinators
effects.parser
;
IN:
syntax
SYNTAX:
execute(
\
execute-effect
parse-call-paren
;