[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Variable ignored warning in defsetf?
- To: email@example.com
- Subject: Re: Variable ignored warning in defsetf?
- From: firstname.lastname@example.org (Chuck Fry )
- Date: Wed, 1 Feb 1995 21:14:09 GMT
- Organization: RECOM Technologies, Code IC, NASA Ames, Moffett Field, CA
- References: <email@example.com>, <199501311518.HAA06636@digitool.com>
- Sender: firstname.lastname@example.org
In article <199501311518.HAA06636@digitool.com>,
Bob Hall <email@example.com> wrote:
> Date: Tue, 31 Jan 1995 09:47:02 -0500
> From: firstname.lastname@example.org (Doug Currie, Flavors Technology, Inc.)
> try: (declare (ignore-if-unused contained?))
> See MCL Ref p. 643
>This may then cause the other Lisps to barf, being a nonstandard declaration.
>Some Lisps have an IGNORABLE declaration, some have IGNORE-IF-UNUSED, etc.
For those Lisps you can simply add at top level:
(declaim (declaration ignore-if-unused))
This tells other Lisp implementations that IGNORE-IF-UNUSED is a
non-standard declaration, so they can safely ignore it. See CLtL2
In general, it's hard to tell which parameters in a defining macro
(e.g. DEFSETF, DEFMETHOD) are unused in the "overhead" code generated
by a particular implementation of the defining macro itself. I've run
across similar examples in different dialects. It would be nice if
they were consistent across all implementations, but that may be
asking too much.
Chuck Fry Work: email@example.com Play: firstname.lastname@example.org
I alone am responsible for the contents of this post.
Keep NASA and RECOM Technologies out of this.