From: ···@usa.net
Subject: ignoring args to methods
Date: 
Message-ID: <8fs0mn$k1l$1@nnrp1.deja.com>
(defmethod foo ((bar (eql 1)))
  (print "foo: bar=1"))

do I need to (declare (ignore bar))?
some lisps complain when I do, some when I don't.

thanks


Sent via Deja.com http://www.deja.com/
Before you buy.

From: Barry Margolin
Subject: Re: ignoring args to methods
Date: 
Message-ID: <d_fU4.31$N12.588@burlma1-snr2>
In article <············@nnrp1.deja.com>,  <···@usa.net> wrote:
>(defmethod foo ((bar (eql 1)))
>  (print "foo: bar=1"))
>
>do I need to (declare (ignore bar))?
>some lisps complain when I do, some when I don't.

Try (declare (ignorable bar)).  That's supposed to prevent both types of
warnings.

-- 
Barry Margolin, ······@genuity.net
Genuity, Burlington, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.
From: Thomas A. Russ
Subject: Re: ignoring args to methods
Date: 
Message-ID: <ymizopqkrtw.fsf@sevak.isi.edu>
You could always go for:

   (declare (ignorable bar))



-- 
Thomas A. Russ,  USC/Information Sciences Institute          ···@isi.edu    
From: Tim Bradshaw
Subject: Re: ignoring args to methods
Date: 
Message-ID: <ey366se5c90.fsf@cley.com>
* sds  wrote:
> (defmethod foo ((bar (eql 1)))
>   (print "foo: bar=1"))

> do I need to (declare (ignore bar))?
> some lisps complain when I do, some when I don't.

I think IGNORABLE would be safe?

--tim