139 lines
7.1 KiB
HTML
139 lines
7.1 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 PRINT-CASE-BEHAVIOR 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/iss271_w.htm">
|
|
<LINK REL=UP HREF="../Issues/iss272.htm">
|
|
<LINK REL=NEXT HREF="../Issues/iss273_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/iss271_w.htm"><IMG WIDTH=40 HEIGHT=40 ALT="[Previous]" SRC="../Graphics/Prev.gif" ALIGN=Bottom></A><A REL=UP HREF="../Issues/iss272.htm"><IMG WIDTH=40 HEIGHT=40 ALT="[Up]" SRC="../Graphics/Up.gif" ALIGN=Bottom></A><A REL=NEXT HREF="../Issues/iss273_w.htm"><IMG WIDTH=40 HEIGHT=40 ALT="[Next]" SRC="../Graphics/Next.gif" ALIGN=Bottom></A></H1>
|
|
|
|
<HR>
|
|
|
|
|
|
|
|
<H2>Issue PRINT-CASE-BEHAVIOR Writeup</H2>
|
|
|
|
<PRE><B>Issue:</B> <A HREF="iss272.htm">PRINT-CASE-BEHAVIOR</A><P>
|
|
<B>Forum:</B> X3J13 Letter Ballot<P>
|
|
<B>References:</B> <A REL=DEFINITION HREF="../Body/v_pr_cas.htm#STprint-caseST"><B>*PRINT-CASE*</B></A> (X3J13/92-102, p22-65)<P>
|
|
<A REL=DEFINITION HREF="../Body/v_pr_esc.htm#STprint-escapeST"><B>*PRINT-ESCAPE*</B></A> (X3J13/92-102, p22-67)<P>
|
|
Public review comment Pitman-8<P>
|
|
<B>Category:</B> CLARIFICATION<P>
|
|
<B>Edit history:</B> 21-Jun-93, Version 1 by Steele (based on text by Loosemore)<P>
|
|
<B>Status:</B> Proposal CLARIFY passed 11-0 on letter ballot 93-304.<P>
|
|
<P>
|
|
<B>Problem Description:<P>
|
|
</B><P>
|
|
This seems to be a case of poorly integrated cleanup issues.<P>
|
|
<P>
|
|
We need to resolve ambiguities in the handling of <A REL=DEFINITION HREF="../Body/v_pr_cas.htm#STprint-caseST"><B>*PRINT-CASE*</B></A>.<P>
|
|
<P>
|
|
The apparent contradictions are due to text from two proposals,<P>
|
|
<A HREF="iss273.htm">PRINT-CASE-PRINT-ESCAPE-INTERACTION:VERTICAL-BAR-RULE-NO-UPCASE</A> and<P>
|
|
<A HREF="iss286.htm">READ-CASE-SENSITIVITY:READTABLE-KEYWORDS</A>, that were previously adopted<P>
|
|
by the committee. Going by the order of the votes on these issues,<P>
|
|
<A HREF="iss286.htm">READ-CASE-SENSITIVITY</A> has priority over <A HREF="iss273.htm">PRINT-CASE-PRINT-ESCAPE-INTERACTION</A>,<P>
|
|
which in turn has priority over any text derived from the base document.<P>
|
|
<P>
|
|
<B>Proposal (PRINT-CASE-BEHAVIOR:CLARIFY):<P>
|
|
</B><P>
|
|
(a) This sentence on page 22-65:<P>
|
|
<P>
|
|
Under no circumstance is<P>
|
|
any character that is lowercase in the internal representation ever presented<P>
|
|
as uppercase due to \varref{*print-case*}.<P>
|
|
<P>
|
|
is quoted from the <A HREF="iss273.htm">PRINT-CASE-PRINT-ESCAPE-INTERACTION</A> proposal, which<P>
|
|
was made obsolete by the subsequent adoption of the<P>
|
|
<A HREF="iss286.htm">READ-CASE-SENSITIVITY</A> issue. We propose to remove this sentence.<P>
|
|
<P>
|
|
(b) The text in section 22.1.3.6.2 was derived from the <P>
|
|
<A HREF="iss286.htm">READ-CASE-SENSITIVITY</A> proposal (which actually says "vertical-bar<P>
|
|
syntax" rather than "escape syntax"). We propose to replace the phrase<P>
|
|
<P>
|
|
When \term{escape} syntax is not being used,<P>
|
|
<P>
|
|
with<P>
|
|
<P>
|
|
When both \varref{*print-escape*} and \varref{*print-readably*} are<P>
|
|
\term{false}, or the characters under consideration are not already <P>
|
|
quoted specifically by \term{single escape} or \term{multiple escape}<P>
|
|
syntax,<P>
|
|
<P>
|
|
This choice is consistent with the decision from the<P>
|
|
<A HREF="iss273.htm">PRINT-CASE-PRINT-ESCAPE-INTERACTION</A> proposal that the case in which<P>
|
|
symbols print is affected by <A REL=DEFINITION HREF="../Body/v_pr_cas.htm#STprint-caseST"><B>*PRINT-CASE*</B></A> even when <A REL=DEFINITION HREF="../Body/v_pr_esc.htm#STprint-escapeST"><B>*PRINT-ESCAPE*</B></A> is<P>
|
|
false. It is also consistent with the Guy Steele's interpretation<P>
|
|
in the second edition of "Common Lisp, the Language".<P>
|
|
<P>
|
|
(c) This text from the first paragraph of section 22.1.3.6<P>
|
|
<P>
|
|
(but <A REL=DEFINITION HREF="../Body/s_the.htm#the"><B>the</B></A> <A REL=DEFINITION HREF="../Body/m_case_.htm#case"><B>case</B></A> in which to <A REL=DEFINITION HREF="../Body/f_wr_pr.htm#print"><B>print</B></A> any uppercase characters in <A REL=DEFINITION HREF="../Body/s_the.htm#the"><B>the</B></A><P>
|
|
\term{name} is controlled by \thevariable{*print-case*}).<P>
|
|
<P>
|
|
was derived from the base document and was made obsolete by the adoption<P>
|
|
of the <A HREF="iss286.htm">READ-CASE-SENSITIVITY</A> proposal. We propose to replace this with<P>
|
|
<P>
|
|
(but <A REL=DEFINITION HREF="../Body/s_the.htm#the"><B>the</B></A> <A REL=DEFINITION HREF="../Body/m_case_.htm#case"><B>case</B></A> in which to <A REL=DEFINITION HREF="../Body/f_wr_pr.htm#print"><B>print</B></A> characters in <A REL=DEFINITION HREF="../Body/s_the.htm#the"><B>the</B></A> \term{name} is<P>
|
|
controlled by \varref{*print-case*};<P>
|
|
\seesection{ReadtableCasePrintEffect}).<P>
|
|
<P>
|
|
<B>Test Case:<P>
|
|
</B><P>
|
|
Not provided.<P>
|
|
<P>
|
|
<B>Rationale:<P>
|
|
</B><P>
|
|
We should better document the relationship between <A REL=DEFINITION HREF="../Body/v_pr_cas.htm#STprint-caseST"><B>*PRINT-CASE*</B></A> and<P>
|
|
other printer control variables such as <A REL=DEFINITION HREF="../Body/v_pr_esc.htm#STprint-escapeST"><B>*PRINT-ESCAPE*</B></A>.<P>
|
|
<P>
|
|
<B>Current Practice:<P>
|
|
</B><P>
|
|
Not provided.<P>
|
|
<P>
|
|
<B>Cost to Implementors:<P>
|
|
</B><P>
|
|
Probably relatively small.<P>
|
|
<P>
|
|
<B>Cost to Users:<P>
|
|
</B><P>
|
|
None. This change doesn't affect anything already guaranteed to the user.<P>
|
|
<P>
|
|
<B>Cost of Non-Adoption:<P>
|
|
</B><P>
|
|
Vagueness in the language specification.<P>
|
|
<P>
|
|
<B>Benefits:<P>
|
|
</B><P>
|
|
Better program portability.<P>
|
|
<P>
|
|
<B>Editorial Impact:<P>
|
|
</B><P>
|
|
Small. A few small, localized edits.<P>
|
|
<P>
|
|
<B>Aesthetics:<P>
|
|
</B><P>
|
|
Mostly neutral.<P>
|
|
<P>
|
|
<B>Discussion:<P>
|
|
</B> <P>
|
|
This addresses comment Pitman #8.<P>
|
|
<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>
|