1
0
Fork 0
cl-sites/HyperSpec-7-0/HyperSpec/Body/d_ignore.htm
2024-04-01 10:24:07 +02:00

56 lines
8.2 KiB
HTML

<!-- Common Lisp HyperSpec (TM), version 7.0 generated by Kent M. Pitman on Mon, 11-Apr-2005 2:31am EDT -->
<HTML>
<HEAD>
<TITLE>CLHS: Declaration IGNORE, IGNORABLE</TITLE>
<LINK HREF="../Data/clhs.css" REL="stylesheet" TYPE="text/css" />
<META HTTP-EQUIV="Author" CONTENT="Kent M. Pitman">
<META HTTP-EQUIV="Organization" CONTENT="LispWorks Ltd.">
<LINK REL=TOP HREF="../Front/index.htm">
<LINK REL=COPYRIGHT HREF="../Front/Help.htm#Legal">
<LINK REL=DISCLAIMER HREF="../Front/Help.htm#Disclaimer">
<LINK REL=PREV HREF="s_declar.htm">
<LINK REL=UP HREF="c_evalua.htm">
<LINK REL=NEXT HREF="d_dynami.htm">
</HEAD>
<BODY>
<H1><A REV=MADE HREF="http://www.lispworks.com/"><IMG WIDTH=80 HEIGHT=65 ALT="[LISPWORKS]" SRC="../Graphics/LWSmall.gif" ALIGN=Bottom></A><A REL=TOP HREF="../Front/index.htm"><IMG WIDTH=237 HEIGHT=65 ALT="[Common Lisp HyperSpec (TM)]" SRC="../Graphics/CLHS_Sm.gif" ALIGN=Bottom></A> <A REL=PREV HREF="s_declar.htm"><IMG WIDTH=40 HEIGHT=40 ALT="[Previous]" SRC="../Graphics/Prev.gif" ALIGN=Bottom></A><A REL=UP HREF="c_evalua.htm"><IMG WIDTH=40 HEIGHT=40 ALT="[Up]" SRC="../Graphics/Up.gif" ALIGN=Bottom></A><A REL=NEXT HREF="d_dynami.htm"><IMG WIDTH=40 HEIGHT=40 ALT="[Next]" SRC="../Graphics/Next.gif" ALIGN=Bottom></A></H1>
<HR>
<A NAME="ignore"><A NAME="ignorable"><I>Declaration</I> <B>IGNORE, IGNORABLE</B></A></A> <P>
<P>
<P><B>Syntax:</B><P>
<P>
<TT></TT>(<TT>ignore </TT>{<TT></TT><I>var</I><TT> </TT>|<TT> </TT>(<TT><A REL=DEFINITION HREF="a_fn.htm#function"></TT><B>function</B><TT></A> </TT><I>fn</I><TT></TT>)<TT></TT>}<TT></TT>*<TT></TT>)<TT></TT> <P>
<TT></TT>(<TT>ignorable </TT>{<TT></TT><I>var</I><TT> </TT>|<TT> </TT>(<TT><A REL=DEFINITION HREF="a_fn.htm#function"></TT><B>function</B><TT></A> </TT><I>fn</I><TT></TT>)<TT></TT>}<TT></TT>*<TT></TT>)<TT></TT> <P>
<P><B>Arguments:</B><P>
<P>
<I>var</I>---a <A REL=DEFINITION HREF="26_glo_v.htm#variable"><I>variable</I></A> <A REL=DEFINITION HREF="26_glo_n.htm#name"><I>name</I></A>. <P>
<I>fn</I>---a <A REL=DEFINITION HREF="26_glo_f.htm#function"><I>function</I></A> <A REL=DEFINITION HREF="26_glo_n.htm#name"><I>name</I></A>. <P>
<P><B>Valid Context:</B><P>
<P>
<A REL=DEFINITION HREF="26_glo_d.htm#declaration"><I>declaration</I></A> <P>
<P><B>Binding Types Affected:</B><P>
<P>
<A REL=DEFINITION HREF="26_glo_v.htm#variable"><I>variable</I></A>, <A REL=DEFINITION HREF="26_glo_f.htm#function"><I>function</I></A> <P>
<P><B>Description:</B><P>
<P>
The <A REL=DEFINITION HREF="#ignore"><B>ignore</B></A> and <A REL=DEFINITION HREF="#ignorable"><B>ignorable</B></A> declarations refer to <A REL=DEFINITION HREF="26_glo_f.htm#for-value"><I>for-value</I></A> <A REL=DEFINITION HREF="26_glo_r.htm#reference"><I>references</I></A> to <A REL=DEFINITION HREF="26_glo_v.htm#variable"><I>variable</I></A> <A REL=DEFINITION HREF="26_glo_b.htm#binding"><I>bindings</I></A> for the <I>vars</I> and to <A REL=DEFINITION HREF="26_glo_f.htm#function"><I>function</I></A> <A REL=DEFINITION HREF="26_glo_b.htm#binding"><I>bindings</I></A> for the <I>fns</I>. <P>
An <A REL=DEFINITION HREF="#ignore"><B>ignore</B></A> <A REL=DEFINITION HREF="26_glo_d.htm#declaration"><I>declaration</I></A> specifies that <A REL=DEFINITION HREF="26_glo_f.htm#for-value"><I>for-value</I></A> <A REL=DEFINITION HREF="26_glo_r.htm#reference"><I>references</I></A> to the indicated <A REL=DEFINITION HREF="26_glo_b.htm#binding"><I>bindings</I></A> will not occur within the scope of the <A REL=DEFINITION HREF="26_glo_d.htm#declaration"><I>declaration</I></A>. Within the <A REL=DEFINITION HREF="26_glo_s.htm#scope"><I>scope</I></A> of such a <A REL=DEFINITION HREF="26_glo_d.htm#declaration"><I>declaration</I></A>, it is desirable for a compiler to issue a warning about the presence of either a <A REL=DEFINITION HREF="26_glo_f.htm#for-value"><I>for-value</I></A> <A REL=DEFINITION HREF="26_glo_r.htm#reference"><I>reference</I></A> to any <I>var</I> or <I>fn</I>, or a <A REL=DEFINITION HREF="d_specia.htm#special"><B>special</B></A> <A REL=DEFINITION HREF="26_glo_d.htm#declaration"><I>declaration</I></A> for any <I>var</I>. <P>
An <A REL=DEFINITION HREF="#ignorable"><B>ignorable</B></A> <A REL=DEFINITION HREF="26_glo_d.htm#declaration"><I>declaration</I></A> specifies that <A REL=DEFINITION HREF="26_glo_f.htm#for-value"><I>for-value</I></A> <A REL=DEFINITION HREF="26_glo_r.htm#reference"><I>references</I></A> to the indicated <A REL=DEFINITION HREF="26_glo_b.htm#binding"><I>bindings</I></A> might or might not occur within the scope of the <A REL=DEFINITION HREF="26_glo_d.htm#declaration"><I>declaration</I></A>. Within the <A REL=DEFINITION HREF="26_glo_s.htm#scope"><I>scope</I></A> of such a <A REL=DEFINITION HREF="26_glo_d.htm#declaration"><I>declaration</I></A>, it is not desirable for a compiler to issue a warning about the presence or absence of either a <A REL=DEFINITION HREF="26_glo_f.htm#for-value"><I>for-value</I></A> <A REL=DEFINITION HREF="26_glo_r.htm#reference"><I>reference</I></A> to any <I>var</I> or <I>fn</I>, or a <A REL=DEFINITION HREF="d_specia.htm#special"><B>special</B></A> <A REL=DEFINITION HREF="26_glo_d.htm#declaration"><I>declaration</I></A> for any <I>var</I>. <P>
When not within the <A REL=DEFINITION HREF="26_glo_s.htm#scope"><I>scope</I></A> of a <A REL=DEFINITION HREF="#ignore"><B>ignore</B></A> or <A REL=DEFINITION HREF="#ignorable"><B>ignorable</B></A> <A REL=DEFINITION HREF="26_glo_d.htm#declaration"><I>declaration</I></A>, it is desirable for a compiler to issue a warning about any <I>var</I> for which there is neither a <A REL=DEFINITION HREF="26_glo_f.htm#for-value"><I>for-value</I></A> <A REL=DEFINITION HREF="26_glo_r.htm#reference"><I>reference</I></A> nor a <A REL=DEFINITION HREF="d_specia.htm#special"><B>special</B></A> <A REL=DEFINITION HREF="26_glo_d.htm#declaration"><I>declaration</I></A>, or about any <I>fn</I> for which there is no <A REL=DEFINITION HREF="26_glo_f.htm#for-value"><I>for-value</I></A> <A REL=DEFINITION HREF="26_glo_r.htm#reference"><I>reference</I></A>. <P>
Any warning about a ``used'' or ``unused'' <A REL=DEFINITION HREF="26_glo_b.htm#binding"><I>binding</I></A> must be of <A REL=DEFINITION HREF="26_glo_t.htm#type"><I>type</I></A> <A REL=DEFINITION HREF="e_style_.htm#style-warning"><B>style-warning</B></A>, and may not affect program semantics. <P>
<P>
The <A REL=DEFINITION HREF="26_glo_s.htm#stream_variable"><I>stream variables</I></A> established by <A REL=DEFINITION HREF="m_w_open.htm#with-open-file"><B>with-open-file</B></A>, <A REL=DEFINITION HREF="m_w_op_1.htm#with-open-stream"><B>with-open-stream</B></A>, <A REL=DEFINITION HREF="m_w_in_f.htm#with-input-from-string"><B>with-input-from-string</B></A>, and <A REL=DEFINITION HREF="m_w_out_.htm#with-output-to-string"><B>with-output-to-string</B></A>, and all <A REL=DEFINITION HREF="26_glo_i.htm#iteration_variable"><I>iteration variables</I></A> are, by definition, always ``used''. Using <TT>(declare (ignore </TT><I>v</I><TT>))</TT>, for such a <A REL=DEFINITION HREF="26_glo_v.htm#variable"><I>variable</I></A> <I>v</I> has unspecified consequences. <P>
<P>
<P>
<P><B>See Also:</B><P>
<P>
<A REL=DEFINITION HREF="s_declar.htm#declare"><B>declare</B></A> <P>
<P><HR>The following <A REL=META HREF="../Front/X3J13Iss.htm">X3J13 cleanup issues</A>, <I>not part of the specification</I>, apply to this section:<P><UL><LI> <A REL=CHILD HREF="../Issues/iss193.htm">IGNORE-USE-TERMINOLOGY:VALUE-ONLY</A><LI> <A REL=CHILD HREF="../Issues/iss137.htm">DOTIMES-IGNORE:X3J13-MAR91</A><P></UL><HR>
<A REL=NAVIGATOR HREF="../Front/StartPts.htm"><IMG WIDTH=80 HEIGHT=40 ALT="[Starting Points]" SRC="../Graphics/StartPts.gif" ALIGN=Bottom></A><A REL=TOC HREF="../Front/Contents.htm"><IMG WIDTH=80 HEIGHT=40 ALT="[Contents]" SRC="../Graphics/Contents.gif" ALIGN=Bottom></A><A REL=INDEX HREF="../Front/X_Master.htm"><IMG WIDTH=80 HEIGHT=40 ALT="[Index]" SRC="../Graphics/Index.gif" ALIGN=Bottom></A><A REL=INDEX HREF="../Front/X_Symbol.htm"><IMG WIDTH=80 HEIGHT=40 ALT="[Symbols]" SRC="../Graphics/Symbols.gif" ALIGN=Bottom></A><A REL=GLOSSARY HREF="../Body/26_a.htm"><IMG WIDTH=80 HEIGHT=40 ALT="[Glossary]" SRC="../Graphics/Glossary.gif" ALIGN=Bottom></A><A HREF="../Front/X3J13Iss.htm"><IMG WIDTH=80 HEIGHT=40 ALT="[Issues]" SRC="../Graphics/Issues.gif" ALIGN=Bottom></A><BR>
<A REL=COPYRIGHT HREF="../Front/Help.htm#Legal"><I>Copyright 1996-2005, LispWorks Ltd. All rights reserved.</I></A><P>
</BODY>
</HTML>