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

121 lines
6.4 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 EVAL-WHEN-OBSOLETE-KEYWORDS 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/iss147_w.htm">
<LINK REL=UP HREF="../Issues/iss148.htm">
<LINK REL=NEXT HREF="../Issues/iss149_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/iss147_w.htm"><IMG WIDTH=40 HEIGHT=40 ALT="[Previous]" SRC="../Graphics/Prev.gif" ALIGN=Bottom></A><A REL=UP HREF="../Issues/iss148.htm"><IMG WIDTH=40 HEIGHT=40 ALT="[Up]" SRC="../Graphics/Up.gif" ALIGN=Bottom></A><A REL=NEXT HREF="../Issues/iss149_w.htm"><IMG WIDTH=40 HEIGHT=40 ALT="[Next]" SRC="../Graphics/Next.gif" ALIGN=Bottom></A></H1>
<HR>
<H2>Issue EVAL-WHEN-OBSOLETE-KEYWORDS Writeup</H2>
<PRE><B>Forum:</B> Public Review<P>
<B>Issue:</B> <A HREF="iss148.htm">EVAL-WHEN-OBSOLETE-KEYWORDS</A><P>
<B>References:</B> Moon's public review comment #2 (X3J13/92-3202)<P>
<A REL=DEFINITION HREF="../Body/s_eval_w.htm#eval-when"><B>EVAL-WHEN</B></A><P>
Issue <A HREF="iss147.htm">EVAL-WHEN-NON-TOP-LEVEL</A><P>
<B>Category:</B> CHANGE<P>
<B>Edit history:</B> 20 Dec 1992, Version 1 by Loosemore<P>
08 Jan 1993, Version 2 by Loosemore (comments from Moon)<P>
12 Sept 1993, Version 3 by Loosemore (add second proposal)<P>
<B>Status:</B> Proposal REMOVE-OLD-KEYWORDS failed 3-6-0, March 1993<P>
Proposal X3J13-MARCH-1993 passed 6-1, March 1993<P>
<P>
<P>
<B>Problem description:<P>
</B><P>
The language in draft 12.24 about the relationship between<P>
the new <A REL=DEFINITION HREF="../Body/s_eval_w.htm#eval-when"><B>EVAL-WHEN</B></A> keywords :EXECUTE, :COMPILE-TOPLEVEL, and<P>
:LOAD-TOPLEVEL and the old, deprecated keywords <A REL=DEFINITION HREF="../Body/f_eval.htm#eval"><B>EVAL</B></A>, <A REL=DEFINITION HREF="../Body/f_cmp.htm#compile"><B>COMPILE</B></A>, and <P>
<A REL=DEFINITION HREF="../Body/f_load.htm#load"><B>LOAD</B></A> is confusing. (For example, it's inconsistent about what<P>
<A REL=DEFINITION HREF="../Body/f_eval.htm#eval"><B>EVAL</B></A> means when not at top level.) The compatibility argument<P>
for retaining two sets of keywords with slightly different<P>
meanings is outweighed by the resulting confusion.<P>
<P>
<P>
<B>Proposal (EVAL-WHEN-OBSOLETE-KEYWORDS:REMOVE-OLD-KEYWORDS):<P>
</B><P>
Eliminate all mention of the old keywords <A REL=DEFINITION HREF="../Body/f_eval.htm#eval"><B>EVAL</B></A>, <A REL=DEFINITION HREF="../Body/f_cmp.htm#compile"><B>COMPILE</B></A>, and <A REL=DEFINITION HREF="../Body/f_load.htm#load"><B>LOAD</B></A><P>
in connection with <A REL=DEFINITION HREF="../Body/s_eval_w.htm#eval-when"><B>EVAL-WHEN</B></A>.<P>
<P>
<B>Proposal (EVAL-WHEN-OBSOLETE-KEYWORDS:X3J13-MARCH-1993):<P>
</B><P>
Generalize the use of the old keywords; define that <A REL=DEFINITION HREF="../Body/s_eval_w.htm#eval-when"><B>eval-when</B></A> always <P>
treats <A REL=DEFINITION HREF="../Body/f_eval.htm#eval"><B>eval</B></A> the same as :execute, compile the same as :compile-toplevel,<P>
and load the same as :load-toplevel.<P>
<P>
<P>
<B>Rationale:<P>
</B><P>
Adopting this suggestion would shorten the specification and remove<P>
an inconsistency. There are so many incompatibilities between<P>
CLtL1, CLtL2, and the draft <A REL=DEFINITION HREF="../Body/07_ffb.htm#standard"><B>standard</B></A> that it's pointless to try to<P>
allow for a modeless implementation that is simultaneously compatible<P>
with all of them.<P>
<P>
<P>
<B>Current practice:<P>
</B><P>
Moon says he's not aware of any implementations whose current releases<P>
don't support the new keywords.<P>
<P>
<P>
<B>Cost to implementors:<P>
</B><P>
Probably small; implementations could continue to support the old<P>
keywords as an extension.<P>
<P>
<P>
<B>Cost to users:<P>
</B><P>
This is an incompatible change, but one that is easy to detect. A<P>
good implementation should complain about unrecognized <A REL=DEFINITION HREF="../Body/s_eval_w.htm#eval-when"><B>EVAL-WHEN</B></A><P>
keywords, anyway.<P>
<P>
<P>
<B>Aesthetics:<P>
</B><P>
Making the <A REL=DEFINITION HREF="../Body/07_ffb.htm#standard"><B>standard</B></A> simpler is a good thing.<P>
<P>
<P>
<B>Editorial impact:<P>
</B><P>
The dictionary entry for <A REL=DEFINITION HREF="../Body/s_eval_w.htm#eval-when"><B>EVAL-WHEN</B></A> is the only place affected.<P>
(The discussion of <A REL=DEFINITION HREF="../Body/s_eval_w.htm#eval-when"><B>EVAL-WHEN</B></A> in <A REL=DEFINITION HREF="../Body/s_the.htm#the"><B>the</B></A> concept section relating to<P>
file compilation uses <A REL=DEFINITION HREF="../Body/s_the.htm#the"><B>the</B></A> new keywords exclusively.)<P>
<P>
<P>
<B>Discussion:<P>
</B><P>
Moon says: <P>
I like EVAL-WHEN-NON-TOP-LEVEL:REMOVE-OLD-KEYWORDS (version 1).<P>
<P>
Moon suggested (in his public review comment) that another way to <P>
resolve this problem would be to define the behavior of the old <P>
keywords to be exactly the same as that of the new keywords.<P>
<P>
<P>
<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>