Return information about the function bindings of a symbol in an environment.
function-information function-name &optional env => kind, localp, decls
A function name
An environment or
nil, or one of the keywords
function-information returns information about how function-name is bound in the environment env. function-name can be a symbol or
setf function name.
The value of kind will be as follows:
There is no information about variable in env
function-name has a macro binding in env
function-name has a function binding in env
function-name has a special operator binding in env
localp will be true if function-name is bound by a form that has indefinite scope (for example
flet) or false if function-name has global scope (for example
decls is an a-list of declarations that refer to function-name. The
cdr of each pair is specified according to the
car of the pair as follows:
cdr is non-nil if function-name is declared
dynamic-extent in env.
cdr is inline or notinline if function-name is explicitly declared
notinline in env. The
nil (or the pair is omitted) if this information is not known.
cdr is the type specifier that is declared for function-name in env if any.
Not all of these declarations are supported.
function-information is part of the environment access API which is based on that specified in
Common Lisp: the Language
LispWorks User Guide and Reference Manual - 13 Feb 2015