Common Lisp the Language, 2nd Edition


next up previous contents index
Next: Defaulting of Initialization Up: Object Creation and Previous: Initialization Arguments

28.1.9.2. Declaring the Validity of Initialization Arguments

change_begin
Initialization arguments are checked for validity in each of the four situations that use them. An initialization argument may be valid in one situation and not another. For example, the system-supplied primary method for make-instance defined for the class standard-class checks the validity of its initialization arguments and signals an error if an initialization argument is supplied that is not declared valid in that situation.

There are two means of declaring initialization arguments valid.

The set of valid initialization arguments for a class is the set of valid initialization arguments that either fill slots or supply arguments to methods, along with the predefined initialization argument :allow-other-keys. The default value for :allow-other-keys is nil. The meaning of :allow-other-keys is the same here as when it is passed to an ordinary function.
change_end



next up previous contents index
Next: Defaulting of Initialization Up: Object Creation and Previous: Initialization Arguments


AI.Repository@cs.cmu.edu