120 lines
6.2 KiB
HTML
120 lines
6.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 LISP-SYMBOL-REDEFINITION-AGAIN 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/iss212_w.htm">
|
||
|
<LINK REL=UP HREF="../Issues/iss213.htm">
|
||
|
<LINK REL=NEXT HREF="../Issues/iss214_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/iss212_w.htm"><IMG WIDTH=40 HEIGHT=40 ALT="[Previous]" SRC="../Graphics/Prev.gif" ALIGN=Bottom></A><A REL=UP HREF="../Issues/iss213.htm"><IMG WIDTH=40 HEIGHT=40 ALT="[Up]" SRC="../Graphics/Up.gif" ALIGN=Bottom></A><A REL=NEXT HREF="../Issues/iss214_w.htm"><IMG WIDTH=40 HEIGHT=40 ALT="[Next]" SRC="../Graphics/Next.gif" ALIGN=Bottom></A></H1>
|
||
|
|
||
|
<HR>
|
||
|
|
||
|
|
||
|
|
||
|
<H2>Issue LISP-SYMBOL-REDEFINITION-AGAIN Writeup</H2>
|
||
|
|
||
|
<PRE><B>Issue:</B> <A HREF="iss213.htm">LISP-SYMBOL-REDEFINITION-AGAIN</A><P>
|
||
|
Reference: X3J13/92-102 (dpANS 12.24)<P>
|
||
|
Section 11.1.2.1.1 Constraints on the COMMON-LISP Package<P>
|
||
|
for Conforming Implementations (p.11-5)<P>
|
||
|
Section 11.1.2.1.2 Constraints on the COMMON-LISP Package<P>
|
||
|
for Conforming Programs (p.11-5..6)<P>
|
||
|
Section 11.1.2.1.2.1 Some Exceptions to Constraints on the<P>
|
||
|
COMMON-LISP Package for Conforming Programs (p.11-6)<P>
|
||
|
X3J13/90-419 <A HREF="iss214.htm">LISP-SYMBOL-REDEFINITION</A> (Version 8)<P>
|
||
|
X3J13/92-1412 Barry Margolin comment #12<P>
|
||
|
X3J13/92-2517 Kim Barrett comment #17<P>
|
||
|
"The Art of the Metaobject Protocol", Section 5.3.1, p.142<P>
|
||
|
<B>Category:</B> CHANGE/CLARIFICATION<P>
|
||
|
<B>Edit History:</B> Version 1, 12/31/92, Kim Barrett<P>
|
||
|
<B>Status:</B> Proposal MORE-FIXES passed (10+1)-0 on letter ballot 93-302.<P>
|
||
|
<P>
|
||
|
<P>
|
||
|
<B>Problem Description:<P>
|
||
|
</B><P>
|
||
|
The set of restrictions on conforming programs specified in 11.1.2.1.2 is<P>
|
||
|
incomplete. Some constraints added by X3J13/90-419 were not included, and<P>
|
||
|
there are some additional restrictions that were missed entirely.<P>
|
||
|
<P>
|
||
|
<B>Proposal (LISP-SYMBOL-REDEFINITION-AGAIN:MORE-FIXES):<P>
|
||
|
</B><P>
|
||
|
1. Make the following changes to existing items in 11.1.2.1.2.<P>
|
||
|
<P>
|
||
|
a. Add "undefining" to item 2, prohibiting the removal of function<P>
|
||
|
definitions.<P>
|
||
|
b. Add "undefining" to item 3, prohibiting the removal of macro and<P>
|
||
|
<A REL=DEFINITION HREF="../Body/f_docume.htm#compiler-macro"><B>compiler-macro</B></A> definitions.<P>
|
||
|
<P>
|
||
|
2. Add the following items to 11.1.2.1.2.<P>
|
||
|
<P>
|
||
|
a. Defining a \term{setf expander} for it (via \funref{defsetf} or<P>
|
||
|
\funref{define-setf-method}).<P>
|
||
|
<P>
|
||
|
b. Defining, undefining, or binding its \term{setf function name}.<P>
|
||
|
<P>
|
||
|
c. Defining it as a \term{method combination} type (via<P>
|
||
|
\funref{define-method-combination}).<P>
|
||
|
<P>
|
||
|
d. Using it as the <A REL=DEFINITION HREF="../Body/f_class_.htm#class-name"><B>class-name</B></A> argument to \funref{setf} of<P>
|
||
|
\funref{find-class}.<P>
|
||
|
<P>
|
||
|
e. Binding it as a \term{catch tag}.<P>
|
||
|
<P>
|
||
|
f. Binding it as a \term{restart} \term{name}.<P>
|
||
|
<P>
|
||
|
g. Defining a \term{method} for a \term{standardized} \term{generic<P>
|
||
|
function} which is \term{applicable} when all of the \term{arguments}<P>
|
||
|
are \term{direct instances} of \term{standardized} \term{classes}.<P>
|
||
|
<P>
|
||
|
3. Add the following as an additional paragraph for 11.1.2.1.2.1.<P>
|
||
|
<P>
|
||
|
If an \term{external symbol} of \thepackage{common-lisp} is not defined as<P>
|
||
|
a \term{standardized} \term{function}, \term{macro}, or \term{special<P>
|
||
|
operator}, it is allowed to lexically \term{bind} its \term{setf function<P>
|
||
|
name} as a \term{function}, and to declare the \declref{ftype} of that<P>
|
||
|
\term{binding}.<P>
|
||
|
<P>
|
||
|
4. Add the following entry to the glossary.<P>
|
||
|
<P>
|
||
|
\gentry{setf function name} \Noun\ (of a \term{symbol})<P>
|
||
|
the \term{list} \f{(<A REL=DEFINITION HREF="../Body/a_setf.htm#setf"><B>setf</B></A> \term{symbol})}.<P>
|
||
|
<P>
|
||
|
<B>Editorial Impact:<P>
|
||
|
</B><P>
|
||
|
Several small additions described above.<P>
|
||
|
<P>
|
||
|
<B>Rationale:<P>
|
||
|
</B><P>
|
||
|
Items 1, 2a through 2d, and 3 were in <A HREF="iss214.htm">LISP-SYMBOL-REDEFINITION</A> (v8) but were<P>
|
||
|
not included in the draft. Items 2a, 2b, and 3 also respond to Margolin's<P>
|
||
|
comment.<P>
|
||
|
<P>
|
||
|
Item 4 defines terminology for the other items to use.<P>
|
||
|
<P>
|
||
|
Items 2e and 2f are cases that were previously overlooked.<P>
|
||
|
<P>
|
||
|
Item 2g was also previously overlooked. It is a recasting of the first<P>
|
||
|
bullet on p.143 of AMOP. It responds to both Margolin's and Barrett's<P>
|
||
|
comments.<P>
|
||
|
<P>
|
||
|
<B>Discussion:<P>
|
||
|
</B><P>
|
||
|
It's unfortunate that section 11.1.2.1 doesn't contain any rationale for the<P>
|
||
|
specified restrictions, but changing that is beyond the scope of this proposal.<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>
|