missing-effect ( word -- * ) (original) (raw)
missing-effect ( word -- * )
Factor handbook » The language » Stack effect checking » Stack checker errors
Prev: | too-many-r> ( -- * ) |
---|
Vocabulary
stack-checker.errors
Error description
Thrown when inference encounters a word lacking a stack effect declaration. Stack effects of words must be declared, with the exception of words which only push literals on the stack.
Examples
: missing-effect-example + * ;
Definition
ERROR: missing-effect < inference-error word ;
Methods
USING: kernel stack-checker.errors summary ;
M: missing-effect summary
drop "Missing stack effect declaration" ;