> (compile 'is-foo-p)
;;; Style Warning: Variable FOO was undefined. Compiler assumes it is a global.
IS-FOO-P
T
NIL
Then:
> (is-foo-p 'bar)
Debugger called in: #<thread "Initial" active (873) 0x7f322f182740 7f322c737000>.
#<a UNBOUND-VARIABLE 139853058003712>:
The variable FOO is unbound.
Clearly, foo shouldn't be evaluated, since the entire type specifier is quoted.
The culprit would appear to be compiler::expand-typep in src/cmp/cmpopt.lsp.
Compile:
Then:
Clearly,
foo
shouldn't be evaluated, since the entire type specifier is quoted.The culprit would appear to be
compiler::expand-typep
in src/cmp/cmpopt.lsp.