112 lines
5.6 KiB
HTML
112 lines
5.6 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: Issue ARGUMENT-MISMATCH-ERROR-MOON Writeup</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="../Issues/iss010_w.htm">
|
|
<LINK REL=UP HREF="../Issues/iss011.htm">
|
|
<LINK REL=NEXT HREF="../Issues/iss012_w.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="../Issues/iss010_w.htm"><IMG WIDTH=40 HEIGHT=40 ALT="[Previous]" SRC="../Graphics/Prev.gif" ALIGN=Bottom></A><A REL=UP HREF="../Issues/iss011.htm"><IMG WIDTH=40 HEIGHT=40 ALT="[Up]" SRC="../Graphics/Up.gif" ALIGN=Bottom></A><A REL=NEXT HREF="../Issues/iss012_w.htm"><IMG WIDTH=40 HEIGHT=40 ALT="[Next]" SRC="../Graphics/Next.gif" ALIGN=Bottom></A></H1>
|
|
|
|
<HR>
|
|
|
|
|
|
|
|
<H2>Issue ARGUMENT-MISMATCH-ERROR-MOON Writeup</H2>
|
|
|
|
<PRE><B>Issue:</B> <A HREF="iss011.htm">ARGUMENT-MISMATCH-ERROR-MOON</A><P>
|
|
Reference: dpANS 12.24<P>
|
|
3.5 Error Checking in Function Calls<P>
|
|
3.5.1.1 Safe and Unsafe Calls<P>
|
|
3.5.1.2 Too Few Arguments<P>
|
|
3.5.1.3 Too Many Arguments<P>
|
|
3.5.1.4 Unrecognized Keyword Arguments<P>
|
|
3.5.1.5 Invalid Keyword Arguments<P>
|
|
3.5.1.6 Odd Number of Keyword Arguments<P>
|
|
3.5.1.7 Destructuring Mismatch<P>
|
|
X3J13/92-3212 David Moon comment #12<P>
|
|
<B>Category:</B> EDITORIAL<P>
|
|
<B>Edit History:</B> Version 1, 12/13/92, Kim Barrett<P>
|
|
Version 2, 5/23/93, Sandra Loosemore (amendment from minutes)<P>
|
|
<B>Status:</B> Proposal FIX passed without objection, March 1993<P>
|
|
<P>
|
|
<B>Problem Description:<P>
|
|
</B><P>
|
|
There are several problems in section 3.5 "Error Checking in Function Calls"<P>
|
|
beginning on page 3-51:<P>
|
|
<P>
|
|
a) The portions of section 3.5.1.1 referring to generic functions and<P>
|
|
<A REL=DEFINITION HREF="../Body/f_call_n.htm#call-next-method"><B>call-next-method</B></A> say "safe" when they should say "safe or system code". The<P>
|
|
generic function, an applicable <A REL=DEFINITION HREF="../Body/t_method.htm#method"><B>method</B></A>, or the <A REL=DEFINITION HREF="../Body/t_method.htm#method"><B>method</B></A> combination might be<P>
|
|
defined in system code.<P>
|
|
<P>
|
|
b) The word "otherwise" beginning the second paragraph of section 3.5.1.2<P>
|
|
doesn't make sense. It should be replaced by "If too few arguments are<P>
|
|
supplied". Similar corrections are required in sections 3.5.1.3, 3.5.1.4,<P>
|
|
3.5.1.5, and 3.5.1.6, but *not* 3.5.1.7.<P>
|
|
<P>
|
|
c) The third paragraphs of sections 3.5.1.2, 3.5.1.3, 3.5.1.4, 3.5.1.5,<P>
|
|
3.5.1.6, and 3.5.1.7 are each completely redundant and should be deleted.<P>
|
|
<P>
|
|
d) The first paragraph of section 3.5.1.7 refers to "Section mm.nn". Relevant<P>
|
|
information does not seem to be in section 3.4.4 or 3.4.5; was this section<P>
|
|
omitted entirely?<P>
|
|
<P>
|
|
<B>Proposal (ARGUMENT-MISMATCH-ERROR-MOON:FIX):<P>
|
|
</B><P>
|
|
a. In the first of the specific cases in 3.5.1.1 (generic function), change<P>
|
|
the second use of the term \term{safe} to be "\term{safe code} or<P>
|
|
\term{system code}". Similarly in the last of the specific cases<P>
|
|
(<A REL=DEFINITION HREF="../Body/f_call_n.htm#call-next-method"><B>call-next-method</B></A>).<P>
|
|
<P>
|
|
b. At the beginning of the second paragraph of each of 3.5.1.2 through<P>
|
|
3.5.1.6, change the phrase "Otherwise, in a \term{safe call}" to "If this<P>
|
|
\term{situation} occurs in a \term{safe call}".<P>
|
|
<P>
|
|
c. Delete the third paragraphs of sections 3.5.1.2 through 3.5.1.7.<P>
|
|
<P>
|
|
d. Repatriate the missing section reference.<P>
|
|
<P>
|
|
e. In the first paragraph of each of 3.5.1.2 and 3.5.1.3, add a period<P>
|
|
following the first occurance of "\term{function}".<P>
|
|
<P>
|
|
<B>Editorial Impact:<P>
|
|
</B><P>
|
|
A small number of explicitly specified edits.<P>
|
|
<P>
|
|
<B>Rationale:<P>
|
|
</B><P>
|
|
<B>Examples:<P>
|
|
</B><P>
|
|
<B>Current Practice:<P>
|
|
</B><P>
|
|
<B>Cost to Implementors:<P>
|
|
</B><P>
|
|
<B>Cost to Users:<P>
|
|
</B><P>
|
|
<B>Performance Impact:<P>
|
|
</B><P>
|
|
<B>Benefits:<P>
|
|
</B><P>
|
|
<B>Aesthetics:<P>
|
|
</B><P>
|
|
<B>Discussion:<P>
|
|
</B><P>
|
|
Proposal item (e) was noted as being needed while preparing the other items.<P>
|
|
<P>
|
|
<P>
|
|
</PRE>
|
|
<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>
|