marcoheisig / fast-generic-functions

Seal your generic functions for an extra boost in performance.
MIT License
94 stars 5 forks source link

ignored variables / method docstring #6

Closed nneuss closed 3 years ago

nneuss commented 4 years ago

Hello,

the following code behaves differently from method definitions for standard generic functions in SBCL 2.0.3.26:

(defgeneric test (vec) (:generic-function-class fast-generic-functions:fast-generic-function))

(defmethod test (vec) "..." 1) => The variable VEC is defined but never used.

If I try to declare vec as ignored, I get

(defmethod test (vec) "..." (declare (ignore vec)) 1) => warning: encountered (DECLARE (IGNORE VEC)) in a place where a DECLARE was not expected

Regards, Nicolas

marcoheisig commented 3 years ago

Fixed in 9c307cd28af6453e45038ac3510de3123ff23743. Thanks for reporting!