Next: declaration-env.policy, Previous: declaration-env-p, Up: API
The function declaration-env.affected-variables returns all binding names that are affected by the declaration specifiers stored in declaration-env. If allowed-decl-ids is given, only the binding names affected by the specifiers starting with one of allowed-decl-ids are returned.
PARSE-DECLARATIONS> (defparameter *env* (parse-declarations '((declare (optimize speed)) (declare (fixnum x y)) (declare (inline +))))) => *ENV* PARSE-DECLARATIONS> (declaration-env.affected-variables *env*) => (X Y #'+) PARSE-DECLARATIONS> (declaration-env.affected-variables *env* '(type)) => (X Y) ;;; The following returnsNIL
, as(ANALYZE-DECLARATION-SPECIFIER 'FIXNUM NIL NIL)
;;; returnsTYPE
as first value. PARSE-DECLARATIONS> (declaration-env.affected-variables *env* '(fixnum)) => NIL
Signals an error of type TYPE-ERROR
if
declaration-env is not a declaration-env.
analyze-declaration-specifier
declaration-env
declaration-env.policy