do-not-compile ( word -- * )
Factor handbook » The language » Stack effect checking » Stack checker errors

Next:unknown-macro-input ( macro -- * )


Vocabulary
stack-checker.errors

Error description
Thrown when inference encounters a macro being applied to a value which is not known to be a literal. Such code needs changes before it can compile and run. See Combinator stack effects and Stack effect checking escape hatches for details.

Examples
In this example, cleave is being applied to an array that is constructed on the fly. This is not allowed and fails to compile with a do-not-compile error:
: cannot-compile-call-example ( x -- y z ) [ 1 + ] [ 1 - ] 2array cleave ;


Definition


Methods