[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: compiler warnings for "unused" method specializers

From: Lars Ingebrigtsen
Subject: Re: compiler warnings for "unused" method specializers
Date: Fri, 14 Oct 2016 01:39:26 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Eric Abrahamsen <address@hidden> writes:

> (cl-defmethod foo ((thing my-object) (_style (eql disco)))
>   (message "%s points at the ceiling" thing))
> There might be better solutions for this stupid example, but I have many
> cases where it's pretty much necessary to specialize on a parameter that
> isn't actually used.

For what it's worth, Lispworks does not complain about unused eql
parameters in defmethods.  It would make sense if Emacs didn't, either.

(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no

reply via email to

[Prev in Thread] Current Thread [Next in Thread]