undeclared-recursion-error ( word -- * ) (original) (raw)

undeclared-recursion-error ( word -- * )
Factor handbook » The language » Stack effect checking » Stack checker errors

Prev: unbalanced-branches-error ( word quots declareds actuals -- * )
Next: diverging-recursion-error ( word -- * )

Vocabulary
stack-checker.errors

Error description
Thrown when an inline word which is not declared recursive calls itself, directly or indirectly. The recursive declaration is mandatory for such words.

Definition

IN: stack-checker.errors

ERROR: undeclared-recursion-error < inference-error word ;

Methods

USING: accessors sequences stack-checker.errors summary ;

M: undeclared-recursion-error summary
word>> name>> "The inline recursive word '"
"' must be declared recursive" surround ;