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

105 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: Issue ARGUMENTS-UNDERSPECIFIED 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/iss012_w.htm">
<LINK REL=UP HREF="../Issues/iss013.htm">
<LINK REL=NEXT HREF="../Issues/iss014_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/iss012_w.htm"><IMG WIDTH=40 HEIGHT=40 ALT="[Previous]" SRC="../Graphics/Prev.gif" ALIGN=Bottom></A><A REL=UP HREF="../Issues/iss013.htm"><IMG WIDTH=40 HEIGHT=40 ALT="[Up]" SRC="../Graphics/Up.gif" ALIGN=Bottom></A><A REL=NEXT HREF="../Issues/iss014_w.htm"><IMG WIDTH=40 HEIGHT=40 ALT="[Next]" SRC="../Graphics/Next.gif" ALIGN=Bottom></A></H1>
<HR>
<H2>Issue ARGUMENTS-UNDERSPECIFIED Writeup</H2>
<PRE><B>Issue:</B> <A HREF="iss013.htm">ARGUMENTS-UNDERSPECIFIED</A><P>
<B>References:</B> <A REL=DEFINITION HREF="../Body/f_logbtp.htm#logbitp"><B>LOGBITP</B></A> (p 224), <A REL=DEFINITION HREF="../Body/f_mk_dis.htm#make-dispatch-macro-character"><B>MAKE-DISPATCH-MACRO-CHARACTER</B></A> (p 363), <P>
<A REL=DEFINITION HREF="../Body/f_mk_has.htm#make-hash-table"><B>MAKE-HASH-TABLE</B></A> (p 283), <A REL=DEFINITION HREF="../Body/f_mk_seq.htm#make-sequence"><B>MAKE-SEQUENCE</B></A> (p 249), <A REL=DEFINITION HREF="../Body/f_rd_rd.htm#read"><B>READ</B></A> (p 375)<P>
<A REL=DEFINITION HREF="../Body/f_mk_stg.htm#make-string"><B>MAKE-STRING</B></A> (p 302), <A REL=DEFINITION HREF="../Body/f_nthcdr.htm#nthcdr"><B>NTHCDR</B></A> (p 267), <A REL=DEFINITION HREF="../Body/f_parse_.htm#parse-integer"><B>PARSE-INTEGER</B></A> (p 381),<P>
<A REL=DEFINITION HREF="../Body/f_set.htm#set"><B>SET</B></A> (p 92)<P>
Issue: RANGE-OF-START-END-PARAMETERS.<P>
<B>Category:</B> CLARIFICATION<P>
<B>Edit history:</B> 26-Aug-88, Version 1 by Chapman<P>
4-Sep-88, version 2 by Masinter<P>
19-Sept-88, Version 3 by Chapman<P>
21-Sep-88, Version 4 by Masinter<P>
<P>
<B>Problem Description:<P>
</B> <P>
The descriptions of <A REL=DEFINITION HREF="../Body/f_logbtp.htm#logbitp"><B>LOGBITP</B></A>, <A REL=DEFINITION HREF="../Body/f_mk_dis.htm#make-dispatch-macro-character"><B>MAKE-DISPATCH-MACRO-CHARACTER</B></A>, <A REL=DEFINITION HREF="../Body/f_rd_rd.htm#read"><B>READ</B></A>, <A REL=DEFINITION HREF="../Body/f_set.htm#set"><B>SET</B></A>,<P>
<A REL=DEFINITION HREF="../Body/f_mk_has.htm#make-hash-table"><B>MAKE-HASH-TABLE</B></A>, <A REL=DEFINITION HREF="../Body/f_mk_seq.htm#make-sequence"><B>MAKE-SEQUENCE</B></A>, <A REL=DEFINITION HREF="../Body/f_mk_stg.htm#make-string"><B>MAKE-STRING</B></A>, <A REL=DEFINITION HREF="../Body/f_nthcdr.htm#nthcdr"><B>NTHCDR</B></A>, and <A REL=DEFINITION HREF="../Body/f_parse_.htm#parse-integer"><B>PARSE-INTEGER</B></A> <P>
are not clear about the types of the arguments supplied to these <P>
constructs.<P>
<P>
Proposal (<A HREF="iss013.htm">ARGUMENTS-UNDERSPECIFIED:SPECIFY</A>)<P>
<P>
Clarify that the arguments for the listed constructs are as follows:<P>
<P>
Construct Argument Type<P>
<A REL=DEFINITION HREF="../Body/f_logbtp.htm#logbitp"><B>LOGBITP</B></A> index non-negative integer<P>
<A REL=DEFINITION HREF="../Body/f_mk_dis.htm#make-dispatch-macro-character"><B>MAKE-DISPATCH-MACRO-CHARACTER</B></A> char character<P>
<A REL=DEFINITION HREF="../Body/f_mk_has.htm#make-hash-table"><B>MAKE-HASH-TABLE</B></A> size non-negative integer<P>
<A REL=DEFINITION HREF="../Body/f_mk_seq.htm#make-sequence"><B>MAKE-SEQUENCE</B></A> size non-negative integer<P>
<A REL=DEFINITION HREF="../Body/f_mk_seq.htm#make-sequence"><B>MAKE-SEQUENCE</B></A> type type specifier<P>
<A REL=DEFINITION HREF="../Body/f_mk_stg.htm#make-string"><B>MAKE-STRING</B></A> size non-negative integer<P>
<A REL=DEFINITION HREF="../Body/f_mk_stg.htm#make-string"><B>MAKE-STRING</B></A> initial-element string-char<P>
<A REL=DEFINITION HREF="../Body/f_nthcdr.htm#nthcdr"><B>NTHCDR</B></A> n non-negative integer<P>
<A REL=DEFINITION HREF="../Body/f_set_sy.htm#set-syntax-from-char"><B>SET-SYNTAX-FROM-CHAR</B></A> to-char,from-char characters<P>
<A REL=DEFINITION HREF="../Body/f_rd_rd.htm#read"><B>READ</B></A> and others eof-value any value<P>
<A REL=DEFINITION HREF="../Body/f_set.htm#set"><B>SET</B></A> value any value<P>
<P>
(<A REL=DEFINITION HREF="../Body/f_mk_has.htm#make-hash-table"><B>MAKE-HASH-TABLE</B></A>, <A REL=DEFINITION HREF="../Body/f_mk_seq.htm#make-sequence"><B>MAKE-SEQUENCE</B></A>, <A REL=DEFINITION HREF="../Body/f_mk_stg.htm#make-string"><B>MAKE-STRING</B></A> have additional constraints on<P>
their respective SIZE arguments; for example, <A REL=DEFINITION HREF="../Body/f_mk_stg.htm#make-string"><B>MAKE-STRING</B></A> may detect an <A REL=DEFINITION HREF="../Body/a_error.htm#error"><B>error</B></A> <A REL=DEFINITION HREF="../Body/s_if.htm#if"><B>if</B></A><P>
SIZE is greater than <A REL=DEFINITION HREF="../Body/a_or.htm#or"><B>or</B></A> <A REL=DEFINITION HREF="../Body/f_equal.htm#equal"><B>equal</B></A> to <A REL=DEFINITION HREF="../Body/v_ar_dim.htm#array-dimension-limit"><B>ARRAY-DIMENSION-LIMIT</B></A>. Some additional <P>
restriction on <A REL=DEFINITION HREF="../Body/s_the.htm#the"><B>the</B></A> range of characters which can have syntax in readtables <P>
<A REL=DEFINITION HREF="../Body/a_and.htm#and"><B>and</B></A> are allowable to <A REL=DEFINITION HREF="../Body/f_mk_dis.htm#make-dispatch-macro-character"><B>MAKE-DISPATCH-MACRO-CHARACTER</B></A> <A REL=DEFINITION HREF="../Body/f_set_sy.htm#set-syntax-from-char"><B>SET-SYNTAX-FROM-CHAR</B></A> might<P>
be required in <A REL=DEFINITION HREF="../Body/f_everyc.htm#some"><B>some</B></A> other proposal.)<P>
<P>
<B>Rationale:<P>
</B> <P>
This clarification allows predictible results to occur when <P>
arguments are supplied to these constructs.<P>
<P>
<B>Current Practice:<P>
</B><P>
This proposal seems to be in line with current implementations.<P>
<P>
<B>Cost to Implementors:<P>
</B> <P>
None, since this is consistent with current practice.<P>
<P>
<B>Cost to Users:<P>
</B>None, since this is consistent with current practice.<P>
<P>
<B>Benefits:<P>
</B> <P>
This clarification will assist users in writing portable code.<P>
<P>
<B>Aesthetics:<P>
</B> <P>
The <A REL=DEFINITION HREF="../Body/07_ffb.htm#standard"><B>standard</B></A> would be less clean were the allowed ranges of its functions not<P>
specified.<P>
<P>
<B>Discussion:<P>
</B><P>
There is a separate cleanup proposal RANGE-OF-START-END-PARAMETERS which<P>
addresses a possible incompatible change. This proposal contains what we<P>
think are non-controversial clarifications.<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>