|
From: Kevin R. <kp...@ma...> - 2007-04-10 03:49:07
|
$ sbcl
This is SBCL 1.0.4, ...
* (defmethod #:foo (bar)
(declare (sb-ext:muffle-conditions sb-ext:code-deletion-note))
t)
WARNING:
The declaration MUFFLE-CONDITIONS is not understood by SB-
PCL::SPLIT-DECLARATIONS.
Please put MUFFLE-CONDITIONS on one of the lists SB-PCL::*NON-VAR-
DECLARATIONS*,
SB-PCL::*VAR-DECLARATIONS-WITH-ARG*, or
SB-PCL::*VAR-DECLARATIONS-WITHOUT-ARG*.
(Assuming it is a variable declaration without argument).
STYLE-WARNING: implicitly creating new generic function #:FOO
#<STANDARD-METHOD #:FOO (T) {11D9A999}>
*
I assume SBCL ought to know about its own declarations by default.
Putting the declaration in a LOCALLY form rather than directly in the
defmethod body does not trigger the warning.
--
Kevin Reid <http://homepage.mac.com/kpreid/>
|