57 lines
8.5 KiB
HTML
57 lines
8.5 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: Section 3.7.1</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="03_g.htm">
|
|
<LINK REL=UP HREF="03_g.htm">
|
|
<LINK REL=NEXT HREF="03_gb.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="03_g.htm"><IMG WIDTH=40 HEIGHT=40 ALT="[Previous]" SRC="../Graphics/Prev.gif" ALIGN=Bottom></A><A REL=UP HREF="03_g.htm"><IMG WIDTH=40 HEIGHT=40 ALT="[Up]" SRC="../Graphics/Up.gif" ALIGN=Bottom></A><A REL=NEXT HREF="03_gb.htm"><IMG WIDTH=40 HEIGHT=40 ALT="[Next]" SRC="../Graphics/Next.gif" ALIGN=Bottom></A></H1>
|
|
|
|
<HR>
|
|
|
|
<H2>
|
|
3.7.1 Modification of Literal Objects</H2> <P>
|
|
The consequences are undefined if <A REL=DEFINITION HREF="26_glo_l.htm#literal"><I>literal</I></A> <A REL=DEFINITION HREF="26_glo_o.htm#object"><I>objects</I></A> are destructively modified. For this purpose, the following operations are considered <A REL=DEFINITION HREF="26_glo_d.htm#destructive"><I>destructive</I></A>: <P>
|
|
<P><DL><P>
|
|
<DT><A REL=DEFINITION HREF="t_rnd_st.htm#random-state"><B>random-state</B></A> <P><DD>
|
|
Using it as an <A REL=DEFINITION HREF="26_glo_a.htm#argument"><I>argument</I></A> to the <A REL=DEFINITION HREF="26_glo_f.htm#function"><I>function</I></A> <A REL=DEFINITION HREF="f_random.htm#random"><B>random</B></A>. <P>
|
|
<DT><A REL=DEFINITION HREF="t_cons.htm#cons"><B>cons</B></A> <P><DD>
|
|
Changing the <A REL=DEFINITION HREF="26_glo_c.htm#car"><I>car</I></A>[1] or <A REL=DEFINITION HREF="26_glo_c.htm#cdr"><I>cdr</I></A>[1] of the <A REL=DEFINITION HREF="26_glo_c.htm#cons"><I>cons</I></A>, or performing a <A REL=DEFINITION HREF="26_glo_d.htm#destructive"><I>destructive</I></A> operation on an <A REL=DEFINITION HREF="26_glo_o.htm#object"><I>object</I></A> which is either the <A REL=DEFINITION HREF="26_glo_c.htm#car"><I>car</I></A>[2] or the <A REL=DEFINITION HREF="26_glo_c.htm#cdr"><I>cdr</I></A>[2] of the <A REL=DEFINITION HREF="26_glo_c.htm#cons"><I>cons</I></A>. <P>
|
|
<DT><A REL=DEFINITION HREF="t_array.htm#array"><B>array</B></A> <P><DD>
|
|
Storing a new value into some element of the <A REL=DEFINITION HREF="26_glo_a.htm#array"><I>array</I></A>, or performing a <A REL=DEFINITION HREF="26_glo_d.htm#destructive"><I>destructive</I></A> operation on an <A REL=DEFINITION HREF="26_glo_o.htm#object"><I>object</I></A> that is already such an <A REL=DEFINITION HREF="26_glo_e.htm#element"><I>element</I></A>. <P>
|
|
Changing the <A REL=DEFINITION HREF="26_glo_f.htm#fill_pointer"><I>fill pointer</I></A>, <A REL=DEFINITION HREF="26_glo_d.htm#dimension"><I>dimensions</I></A>, or displacement of the <A REL=DEFINITION HREF="26_glo_a.htm#array"><I>array</I></A> (regardless of whether the <A REL=DEFINITION HREF="26_glo_a.htm#array"><I>array</I></A> is <A REL=DEFINITION HREF="26_glo_a.htm#actually_adjustable"><I>actually adjustable</I></A>). <P>
|
|
Performing a <A REL=DEFINITION HREF="26_glo_d.htm#destructive"><I>destructive</I></A> operation on another <A REL=DEFINITION HREF="26_glo_a.htm#array"><I>array</I></A> that is displaced to the <A REL=DEFINITION HREF="26_glo_a.htm#array"><I>array</I></A> or that otherwise shares its contents with the <A REL=DEFINITION HREF="26_glo_a.htm#array"><I>array</I></A>. <P>
|
|
<DT><A REL=DEFINITION HREF="t_hash_t.htm#hash-table"><B>hash-table</B></A> <P><DD>
|
|
Performing a <A REL=DEFINITION HREF="26_glo_d.htm#destructive"><I>destructive</I></A> operation on any <A REL=DEFINITION HREF="26_glo_k.htm#key"><I>key</I></A>. <P>
|
|
Storing a new <A REL=DEFINITION HREF="26_glo_v.htm#value"><I>value</I></A>[4] for any <A REL=DEFINITION HREF="26_glo_k.htm#key"><I>key</I></A>, or performing a <A REL=DEFINITION HREF="26_glo_d.htm#destructive"><I>destructive</I></A> operation on any <A REL=DEFINITION HREF="26_glo_o.htm#object"><I>object</I></A> that is such a <A REL=DEFINITION HREF="26_glo_v.htm#value"><I>value</I></A>. <P>
|
|
Adding or removing entries from the <A REL=DEFINITION HREF="26_glo_h.htm#hash_table"><I>hash table</I></A>. <P>
|
|
<DT><A REL=DEFINITION HREF="t_stu_ob.htm#structure-object"><B>structure-object</B></A> <P><DD>
|
|
Storing a new value into any slot, or performing a <A REL=DEFINITION HREF="26_glo_d.htm#destructive"><I>destructive</I></A> operation on an <A REL=DEFINITION HREF="26_glo_o.htm#object"><I>object</I></A> that is the value of some slot. <P>
|
|
<DT><A REL=DEFINITION HREF="t_std_ob.htm#standard-object"><B>standard-object</B></A> <P><DD>
|
|
Storing a new value into any slot, or performing a <A REL=DEFINITION HREF="26_glo_d.htm#destructive"><I>destructive</I></A> operation on an <A REL=DEFINITION HREF="26_glo_o.htm#object"><I>object</I></A> that is the value of some slot. <P>
|
|
Changing the class of the <A REL=DEFINITION HREF="26_glo_o.htm#object"><I>object</I></A> (e.g., using the <A REL=DEFINITION HREF="26_glo_f.htm#function"><I>function</I></A> <A REL=DEFINITION HREF="f_chg_cl.htm#change-class"><B>change-class</B></A>). <P>
|
|
<DT><A REL=DEFINITION HREF="t_rdtabl.htm#readtable"><B>readtable</B></A> <P><DD>
|
|
Altering the <A REL=DEFINITION HREF="26_glo_r.htm#readtable_case"><I>readtable case</I></A>. <P>
|
|
Altering the syntax type of any character in this readtable. <P>
|
|
Altering the <A REL=DEFINITION HREF="26_glo_r.htm#reader_macro_function"><I>reader macro function</I></A> associated with any <A REL=DEFINITION HREF="26_glo_c.htm#character"><I>character</I></A> in the <A REL=DEFINITION HREF="26_glo_r.htm#readtable"><I>readtable</I></A>, or altering the <A REL=DEFINITION HREF="26_glo_r.htm#reader_macro_function"><I>reader macro functions</I></A> associated with <A REL=DEFINITION HREF="26_glo_c.htm#character"><I>characters</I></A> defined as <A REL=DEFINITION HREF="26_glo_d.htm#dispatching_macro_character"><I>dispatching macro characters</I></A> in the <A REL=DEFINITION HREF="26_glo_r.htm#readtable"><I>readtable</I></A>. <P>
|
|
<DT><A REL=DEFINITION HREF="t_stream.htm#stream"><B>stream</B></A> <P><DD>
|
|
Performing I/O operations on the <A REL=DEFINITION HREF="26_glo_s.htm#stream"><I>stream</I></A>, or <I>closing</I> the <A REL=DEFINITION HREF="26_glo_s.htm#stream"><I>stream</I></A>. <P>
|
|
<DT>All other standardized types <P><DD>
|
|
[This category includes, for example, <A REL=DEFINITION HREF="t_ch.htm#character"><B>character</B></A>, <A REL=DEFINITION HREF="e_cnd.htm#condition"><B>condition</B></A>, <A REL=DEFINITION HREF="t_fn.htm#function"><B>function</B></A>, <A REL=DEFINITION HREF="t_meth_1.htm#method-combination"><B>method-combination</B></A>, <A REL=DEFINITION HREF="t_method.htm#method"><B>method</B></A>, <A REL=DEFINITION HREF="t_number.htm#number"><B>number</B></A>, <A REL=DEFINITION HREF="t_pkg.htm#package"><B>package</B></A>, <A REL=DEFINITION HREF="t_pn.htm#pathname"><B>pathname</B></A>, <A REL=DEFINITION HREF="t_rst.htm#restart"><B>restart</B></A>, and <A REL=DEFINITION HREF="t_symbol.htm#symbol"><B>symbol</B></A>.] <P>
|
|
There are no <A REL=DEFINITION HREF="26_glo_s.htm#standardized"><I>standardized</I></A> <A REL=DEFINITION HREF="26_glo_d.htm#destructive"><I>destructive</I></A> operations defined on <A REL=DEFINITION HREF="26_glo_o.htm#object"><I>objects</I></A> of these <A REL=DEFINITION HREF="26_glo_t.htm#type"><I>types</I></A>. <P>
|
|
<P></DL><P>
|
|
<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>
|