[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Variable ignored warning in defsetf?
- To: firstname.lastname@example.org
- Subject: Re: Variable ignored warning in defsetf?
- From: email@example.com (Chuck Fry )
- Date: Wed, 1 Feb 1995 21:14:09 GMT
- Organization: RECOM Technologies, Code IC, NASA Ames, Moffett Field, CA
- References: <firstname.lastname@example.org>, <199501311518.HAA06636@digitool.com>
- Sender: email@example.com
In article <199501311518.HAA06636@digitool.com>,
Bob Hall <firstname.lastname@example.org> wrote:
> Date: Tue, 31 Jan 1995 09:47:02 -0500
> From: email@example.com (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: firstname.lastname@example.org Play: email@example.com
I alone am responsible for the contents of this post.
Keep NASA and RECOM Technologies out of this.