Vocabularystack-checker.errorsError descriptionThrown when inference encounters a combinator or macro being applied to a value which is not known at compile time. Such code needs changes before it can compile and run. See
Combinator stack effects and
Stack effect checking escape hatches for details.
ExamplesIn this example, the words being defined cannot be called, because they fail to compile with a
bad-macro-input error:
: bad-example ( quot -- )
[ . ] append call ; inline
: usage ( -- )
2 2 [ + ] bad-example ;
One fix is to use
compose instead of
append:
: good-example ( quot -- )
[ . ] compose call ; inline
: usage ( -- )
2 2 [ + ] good-example ;
DefinitionMethods