Ticket #1035 (closed enhancement: fixed)
special variables and declare ignore
| Reported by: | rme | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Compiler | Version: | trunk |
| Keywords: | Cc: |
Description
The spec says that a warning should be issued if a variable declared to be ignored is declared SPECIAL, as in:
(defun foo (x y) (declare (ignore y)) ... (locally (declare (special y)) ...))
That code doesn't make much sense, but it clearly deservers a warning.
(defparameter y ...) (defun foo (x y) (declare (ignore y)) ...)
is about the same thing, but the warning in both cases should probably complain that inconsistent declarations applied to Y and not just say that it "wasn't IGNOREd".
Change History
Note: See
TracTickets for help on using
tickets.
