*redefinition-warnings*

$Revision: 5.0.2.4 $

Variable

Package: EXCL

This variable controls redefinition warnings. If nil, redefinition warnings will not be printed under any circumstances.

If non-nil, the value should be a list of keywords identifying the objects for which redefinition warnings should be printed. The following table shows the keywords supported.

Redefinition keywords and their effect

Keyword

Definitions for which warnings will be printed

:operator defun

clos:generic-function

defmacro

:variable defconstant

defparameter

defvar

:special-declaration defconstant

defparameter

defvar

:compiler-macro define-compiler-macro
:setf-method defsetf
:type defclass

defstruct

deftype

The initial value of this variable is a list containing all six keywords.

The function cl:load and its associates like the top-level command :ld lambda binds this variable to itself when loading a file so the value of this variable cannot be changed by a form in a file being loaded. The following form in a file will change the value outside the binding:

(setf (mp:global-symbol-value 'excl:*redefinition-warnings <new-value>)

See source_file_recording,htm for general information on source file recording.

The general documentation description is in introduction.htm. The index is in index.htm.

Copyright (C) 1998-1999, Franz Inc., Berkeley, CA. All Rights Reserved.