Next: , Previous: declaration-env.affected-variables, Up: API


declaration-env.policy

Syntax

— Function: declaration-env.policy declaration-env ⇒ policy

Arguments and Values

declaration-env
A declaration-env
policy
A list of optimize qualities.

Description

The function declaration-env.policy returns the optimize qualities that are stored in declaration-env.

Examples

  PARSE-DECLARATIONS> (declaration-env.policy (parse-declarations
                                               '((declare (optimize (speed 0) (debug 2)))
                                                 (declare (fixnum x y))
                                                 (declare (inline +))
                                                 (declae (optimize (safety 3))))))
  => ((SAFETY 3) (SPEED 0) (DEBUG 2))

Exceptional Situations

Signals an error of type TYPE-ERROR if declaration-env is not a declaration-env.

See Also

declaration-env
declaration-env.affected-variables