Restore (under user control) the warnings for defmethod on functions without defgenerics
Bug #1818142 reported by
Paul F. Dietz
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
In e0a9a73d891344c
(I ask this because of real users cases involving typos in the names of methods, and also when packages are not set up properly and the symbol isn't the one the user is thinking of.)
Changed in sbcl: | |
status: | New → Confirmed |
importance: | Undecided → Wishlist |
To post a comment you must log in.
What's the best way to do something like this? An issue is making code using it play well with earlier versions of SBCL. So if there's a symbol SB-EXT:*FOO* that controls the behavior, one might write (in the .sbclrc file, say):
(let ((sym (find-symbol "*FOO*" "SB-EXT")))
(when sym (setf (symbol-value sym) t)))
With a declaration, one could use the DECLARATION declaration, but the problem there would be the package could be locked.
(declaim (declaration sb-ext: defmethod- warn)) defmethod- warn))
(declaim (sb-ext: