execute ( word -- )
Factor handbook » The language » Combinators » Fundamental combinators

Prev:call ( callable -- )
Next:call(


Vocabulary
kernel

Inputs
worda word


Outputs
None

Word description
Executes a word. Words which execute an input parameter must be declared inline so that a caller which passes in a literal word can have a static stack effect.

Notes
To execute a non-literal word, you can use execute( to check the stack effect before calling at runtime.

Examples
USING: kernel io words ; IN: scratchpad : twice ( word -- ) dup execute execute ; inline : hello ( -- ) "Hello" print ; \ hello twice
Hello Hello


See also
execute(

Definition


Methods