Returns information about the variable bindings of a symbol in an environment.
hcl
variable-information variable &optional env => kind, localp, decls
variable⇩ |
A symbol. |
env⇩ |
An environment or nil . |
kind⇩ | nil or one of the keywords :special , :lexical , :symbol-macro and :constant . |
localp⇩ |
A boolean. |
decls⇩ |
An a-list. |
The function variable-information
returns information about how the variable symbol is bound in the environment env.
The value of kind will be as follows:
nil | |
:special | |
:lexical | |
:symbol-macro | |
:constant |
localp will be true if variable is bound by a form that has lexical scope (for example let, lambda) or false if variable has global scope (for example defvar).
decls is an a-list of declarations that refer to variable. The cdr of each pair is specified according to the car of the pair as follows:
The cdr is non-nil if variable is declared dynamic-extent in env. | |
variable-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
function-information
map-environment
LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:35