inline
Factor documentation > Factor handbook > The language > Words > Compiler declarations
Next:foldable


Vocabulary
syntax

Syntax
: foo ... ; inline


Word description
Declares the most recently defined word as an inline word. The optimizing compiler copies definitions of inline words when compiling calls to them.

Combinators must be inlined in order to compile with the optimizing compiler - see Combinator stack effects. For any other word, inlining is merely an optimization.

The non-optimizing quotation compiler ignores inlining declarations.

Definition
USING: words ;

IN: syntax

SYNTAX: inline word make-inline ;