98 lines
6.1 KiB
HTML
98 lines
6.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 COMPILER-WARNING-STREAM 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/iss067_w.htm">
|
|
<LINK REL=UP HREF="../Issues/iss068.htm">
|
|
<LINK REL=NEXT HREF="../Issues/iss069_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/iss067_w.htm"><IMG WIDTH=40 HEIGHT=40 ALT="[Previous]" SRC="../Graphics/Prev.gif" ALIGN=Bottom></A><A REL=UP HREF="../Issues/iss068.htm"><IMG WIDTH=40 HEIGHT=40 ALT="[Up]" SRC="../Graphics/Up.gif" ALIGN=Bottom></A><A REL=NEXT HREF="../Issues/iss069_w.htm"><IMG WIDTH=40 HEIGHT=40 ALT="[Next]" SRC="../Graphics/Next.gif" ALIGN=Bottom></A></H1>
|
|
|
|
<HR>
|
|
|
|
|
|
|
|
<H2>Issue COMPILER-WARNING-STREAM Writeup</H2>
|
|
|
|
<PRE><B>Status:</B> passed, June 87<P>
|
|
<B>Issue:</B> <A HREF="iss068.htm">COMPILER-WARNING-STREAM</A><P>
|
|
<B>References:</B> <A REL=DEFINITION HREF="../Body/f_cmp.htm#compile"><B>COMPILE</B></A> (p438), <A REL=DEFINITION HREF="../Body/f_cmp_fi.htm#compile-file"><B>COMPILE-FILE</B></A> (p439)<P>
|
|
<B>Category:</B> CLARIFICATION/CHANGE<P>
|
|
<B>Edit history:</B> Version 1 by Pitman 02/27/87<P>
|
|
Version 2 at committee meeting 15-Mar-87<P>
|
|
Version 3 Masinter 15-Mar-87<P>
|
|
Version 4 by Fahlman, incorporate Dribble<P>
|
|
Version 5 by Masinter, 29-May-87, revert to Version 3<P>
|
|
Version 6 by Masinter, 5-Jun-87, minor formatting<P>
|
|
<P>
|
|
<P>
|
|
<B>Problem Description:<P>
|
|
</B><P>
|
|
The description of the <A REL=DEFINITION HREF="../Body/f_cmp.htm#compile"><B>COMPILE</B></A> and <A REL=DEFINITION HREF="../Body/f_cmp_fi.htm#compile-file"><B>COMPILE-FILE</B></A> functions does not<P>
|
|
explicitly permit them to print warnings. If this is to be allowed, it<P>
|
|
should be an explicitly expressed part of the contract.<P>
|
|
<P>
|
|
Proposal (COMPILER-WARNING-STREAM:ERROR-OUTPUT)<P>
|
|
<P>
|
|
<A REL=DEFINITION HREF="../Body/f_cmp.htm#compile"><B>COMPILE</B></A> and <A REL=DEFINITION HREF="../Body/f_cmp_fi.htm#compile-file"><B>COMPILE-FILE</B></A> are permitted to output warnings; warnings<P>
|
|
should go to the stream that is the value of <A REL=DEFINITION HREF="../Body/v_debug_.htm#STerror-outputST"><B>*ERROR-OUTPUT*</B></A>.<P>
|
|
<P>
|
|
<B>Rationale:<P>
|
|
</B><P>
|
|
Compiler warning output is a widely accepted extension to the<P>
|
|
compilation. Warnings that come via the <A REL=DEFINITION HREF="../Body/f_warn.htm#warn"><B>WARN</B></A> function will go to the<P>
|
|
stream that is the value of <A REL=DEFINITION HREF="../Body/v_debug_.htm#STerror-outputST"><B>*ERROR-OUTPUT*</B></A>.<P>
|
|
<P>
|
|
<B>Current Practice:<P>
|
|
</B><P>
|
|
Some implementations send compiler warning output to <A REL=DEFINITION HREF="../Body/v_debug_.htm#STerror-outputST"><B>*ERROR-OUTPUT*</B></A>.<P>
|
|
Other implementations send it to <A REL=DEFINITION HREF="../Body/v_debug_.htm#STstandard-outputST"><B>*STANDARD-OUTPUT*</B></A>.<P>
|
|
<P>
|
|
<B>Adoption Cost:<P>
|
|
</B><P>
|
|
In most cases, the change to the compiler to redirect output is expected to be very slight.<P>
|
|
<P>
|
|
<B>Benefits:<P>
|
|
</B><P>
|
|
Currently, it is difficult to redirect the output of <A REL=DEFINITION HREF="../Body/f_cmp.htm#compile"><B>COMPILE</B></A> and<P>
|
|
<A REL=DEFINITION HREF="../Body/f_cmp_fi.htm#compile-file"><B>COMPILE-FILE</B></A> because it isn't clear where it's directed.<P>
|
|
<P>
|
|
<B>Conversion Cost:<P>
|
|
</B><P>
|
|
Most user programs that care are probably already tolerant of both<P>
|
|
situations or naively expect that output will go to <A REL=DEFINITION HREF="../Body/v_debug_.htm#STerror-outputST"><B>*ERROR-OUTPUT*</B></A>. As<P>
|
|
such, most users will probably perceive this as a clarification.<P>
|
|
<P>
|
|
<B>Aesthetics:<P>
|
|
</B><P>
|
|
Most users will probably perceive this change as a simplification<P>
|
|
because it will allow the kind of warning that comes from <A REL=DEFINITION HREF="../Body/f_warn.htm#warn"><B>WARN</B></A> and the<P>
|
|
kind of warning that comes from compilation to be conceptually grouped.<P>
|
|
<P>
|
|
<B>Discussion:<P>
|
|
</B><P>
|
|
This was a problem in adapting MACSYMA to Common Lisp because Macsyma<P>
|
|
provides alternate user interfaces to the compiler which it needs to be<P>
|
|
able to control.<P>
|
|
<P>
|
|
The committee considered extending the proposal to describe the<P>
|
|
interaction with <A REL=DEFINITION HREF="../Body/f_dribbl.htm#dribble"><B>DRIBBLE</B></A> on the warning output, but found that <A REL=DEFINITION HREF="../Body/f_dribbl.htm#dribble"><B>DRIBBLE</B></A><P>
|
|
was so underspecified as to make the task impossible. <A REL=DEFINITION HREF="../Body/f_dribbl.htm#dribble"><B>DRIBBLE</B></A> should be<P>
|
|
considered in a separate proposal.<P>
|
|
<P>
|
|
The cleanup committee supports this change as stated.<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>
|