All Manuals > LispWorks User Guide and Reference Manual > 31 The CLOS Package

NextPrevUpTopContentsIndex

set-clos-initarg-checking

Function
Summary

Switches initarg checking on or off in make-instance, reinitialize-instance, change-class and so on.

Package

clos

Signature

set-clos-initarg-checking on => on

Arguments

on

A generalized boolean.

Description

The function set-clos-initarg-checking provides control over whether CLOS checks initialization arguments. Initializations affected include:

Calling set-clos-initarg-checking with a true value of on causes the above initializations to check their initargs. This is the initial state of LispWorks.

Initarg checking is switched off globally and dynamically by

(set-clos-initarg-checking nil)
Notes
  1. The effect of calling set-clos-initarg-checking can be overridden in a runtime by the deliver keyword argument :clos-initarg-checking. See the LispWorks Delivery User Guide for details.
  2. set-clos-initarg-checking supersedes set-make-instance-argument-checking.
See also

class-extra-initargs
compute-class-potential-initargs
deliver
make-instance


LispWorks User Guide and Reference Manual - 20 Sep 2017

NextPrevUpTopContentsIndex