[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: functionp

>When you have a function defined, say (defun junk (x) ... ),
>and you try:
>(functionp 'junk)
>you get NIL.
>Is this not a bug? 

At the bottom of p. 102 of CLtL2, it says:

"X3J13 voted in June 1988 <90> to define

(functionp x) = (typep x 'function)

Because the vote also specified that types CONS and SYMBOL are disjoint
from type FUNCTION, this is an incompatible change; now FUNCTIONP is in
fact always false of symbols and lists."

MCL 2.0 includes this incompatible change to FUNCTIONP.