Return information about the function bindings of a symbol in an environment.
hcl
function-information function-name &optional env => kind, localp, decls
function-name⇩ |
A function name. |
env⇩ |
An environment or nil . |
kind⇩ |
Either nil , or one of the keywords :macro , :function and :special-form . |
localp⇩ |
A boolean. |
decls⇩ |
An a-list. |
The function 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:
nil | |
:macro | |
:function | |
:special-form |
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 defun).
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:
The cdr is non-nil if function-name is declared dynamic-extent in env. | |
function-information
is part of the environment access API which is based on that specified in Common Lisp: the Language (2nd Edition).
augment-environment
declaration-information
define-declaration
map-environment
variable-information
LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:35