58 lines
6.9 KiB
HTML
58 lines
6.9 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: Type SIMPLE-ARRAY</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="t_array.htm">
|
|
<LINK REL=UP HREF="c_arrays.htm">
|
|
<LINK REL=NEXT HREF="t_vector.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="t_array.htm"><IMG WIDTH=40 HEIGHT=40 ALT="[Previous]" SRC="../Graphics/Prev.gif" ALIGN=Bottom></A><A REL=UP HREF="c_arrays.htm"><IMG WIDTH=40 HEIGHT=40 ALT="[Up]" SRC="../Graphics/Up.gif" ALIGN=Bottom></A><A REL=NEXT HREF="t_vector.htm"><IMG WIDTH=40 HEIGHT=40 ALT="[Next]" SRC="../Graphics/Next.gif" ALIGN=Bottom></A></H1>
|
|
|
|
<HR>
|
|
|
|
<A NAME="simple-array"><I>Type</I> <B>SIMPLE-ARRAY</B></A> <P>
|
|
<P><B>Supertypes:</B><P>
|
|
<P>
|
|
<A REL=DEFINITION HREF="#simple-array"><B>simple-array</B></A>, <A REL=DEFINITION HREF="t_array.htm#array"><B>array</B></A>, <A REL=DEFINITION HREF="t_t.htm#t"><B>t</B></A> <P>
|
|
<P><B>Description:</B><P>
|
|
<P>
|
|
The <A REL=DEFINITION HREF="26_glo_t.htm#type"><I>type</I></A> of an <A REL=DEFINITION HREF="26_glo_a.htm#array"><I>array</I></A> that is not displaced to another <A REL=DEFINITION HREF="26_glo_a.htm#array"><I>array</I></A>, has no <A REL=DEFINITION HREF="26_glo_f.htm#fill_pointer"><I>fill pointer</I></A>, and is not <A REL=DEFINITION HREF="26_glo_e.htm#expressly_adjustable"><I>expressly adjustable</I></A> is a <A REL=DEFINITION HREF="26_glo_s.htm#subtype"><I>subtype</I></A> of <A REL=DEFINITION HREF="26_glo_t.htm#type"><I>type</I></A> <A REL=DEFINITION HREF="#simple-array"><B>simple-array</B></A>. The concept of a <A REL=DEFINITION HREF="26_glo_s.htm#simple_array"><I>simple array</I></A> exists to allow the implementation to use a specialized representation and to allow the user to declare that certain values will always be <A REL=DEFINITION HREF="26_glo_s.htm#simple_array"><I>simple arrays</I></A>. <P>
|
|
The <A REL=DEFINITION HREF="26_glo_t.htm#type"><I>types</I></A> <A REL=DEFINITION HREF="t_smp_ve.htm#simple-vector"><B>simple-vector</B></A>, <A REL=DEFINITION HREF="t_smp_st.htm#simple-string"><B>simple-string</B></A>, and <A REL=DEFINITION HREF="t_smp_bt.htm#simple-bit-vector"><B>simple-bit-vector</B></A> are <A REL=DEFINITION HREF="26_glo_d.htm#disjoint"><I>disjoint</I></A> <A REL=DEFINITION HREF="26_glo_s.htm#subtype"><I>subtypes</I></A> of <A REL=DEFINITION HREF="26_glo_t.htm#type"><I>type</I></A> <A REL=DEFINITION HREF="#simple-array"><B>simple-array</B></A>, for they respectively mean <TT>(simple-array t (*))</TT>, the union of all <TT>(simple-array </TT><I>c</I><TT> (*))</TT> for any <I>c</I> being a <A REL=DEFINITION HREF="26_glo_s.htm#subtype"><I>subtype</I></A> of <A REL=DEFINITION HREF="26_glo_t.htm#type"><I>type</I></A> <A REL=DEFINITION HREF="t_ch.htm#character"><B>character</B></A>, and <TT>(simple-array bit (*))</TT>. <P>
|
|
<P><B>Compound Type Specifier Kind:</B><P>
|
|
<P>
|
|
Specializing. <P>
|
|
<P><B>Compound Type Specifier Syntax:</B><P>
|
|
<P>
|
|
|
|
<B>simple-array</B> <I>[{element-type | <A REL=DEFINITION HREF="a_st.htm#ST"><B>*</B></A>} [dimension-spec]]</I><P>
|
|
<P>
|
|
<PRE>
|
|
dimension-spec::= rank | <A REL=DEFINITION HREF="a_st.htm#ST">*</A> | ({dimension | <A REL=DEFINITION HREF="a_st.htm#ST">*</A>}*)
|
|
</PRE>
|
|
<P>
|
|
<P><B>Compound Type Specifier Arguments:</B><P>
|
|
<P>
|
|
<I>dimension</I>---a <A REL=DEFINITION HREF="26_glo_v.htm#valid_array_dimension"><I>valid array dimension</I></A>. <P>
|
|
<I>element-type</I>---a <A REL=DEFINITION HREF="26_glo_t.htm#type_specifier"><I>type specifier</I></A>. <P>
|
|
<I>rank</I>---a non-negative <A REL=DEFINITION HREF="26_glo_f.htm#fixnum"><I>fixnum</I></A>. <P>
|
|
<P><B>Compound Type Specifier Description:</B><P>
|
|
<P>
|
|
This <A REL=DEFINITION HREF="26_glo_c.htm#compound_type_specifier"><I>compound type specifier</I></A> is treated exactly as the corresponding <A REL=DEFINITION HREF="26_glo_c.htm#compound_type_specifier"><I>compound type specifier</I></A> for <A REL=DEFINITION HREF="26_glo_t.htm#type"><I>type</I></A> <A REL=DEFINITION HREF="t_array.htm#array"><B>array</B></A> would be treated, except that the set is further constrained to include only <A REL=DEFINITION HREF="26_glo_s.htm#simple_array"><I>simple arrays</I></A>. <P>
|
|
<P><B>Notes:</B><P>
|
|
<P>
|
|
It is <A REL=DEFINITION HREF="26_glo_i.htm#implementation-dependent"><I>implementation-dependent</I></A> whether <A REL=DEFINITION HREF="26_glo_d.htm#displaced_array"><I>displaced arrays</I></A>, <A REL=DEFINITION HREF="26_glo_v.htm#vector"><I>vectors</I></A> with <A REL=DEFINITION HREF="26_glo_f.htm#fill_pointer"><I>fill pointers</I></A>, or arrays that are <A REL=DEFINITION HREF="26_glo_a.htm#actually_adjustable"><I>actually adjustable</I></A> are <A REL=DEFINITION HREF="26_glo_s.htm#simple_array"><I>simple arrays</I></A>. <P>
|
|
<TT>(simple-array *)</TT> refers to all <A REL=DEFINITION HREF="26_glo_s.htm#simple_array"><I>simple arrays</I></A> regardless of element type, <TT>(simple-array </TT><I>type-specifier</I><TT>)</TT> refers only to those <A REL=DEFINITION HREF="26_glo_s.htm#simple_array"><I>simple arrays</I></A> that can result from giving <I>type-specifier</I> as the <TT>:element-type</TT> argument to <A REL=DEFINITION HREF="f_mk_ar.htm#make-array"><B>make-array</B></A>. <P>
|
|
<P><HR>The following <A REL=META HREF="../Front/X3J13Iss.htm">X3J13 cleanup issues</A>, <I>not part of the specification</I>, apply to this section:<P><UL><LI> <A REL=CHILD HREF="../Issues/iss015.htm">ARRAY-TYPE-ELEMENT-TYPE-SEMANTICS:UNIFY-UPGRADING</A><LI> <A REL=CHILD HREF="../Issues/iss014.htm">ARRAY-DIMENSION-LIMIT-IMPLICATIONS:ALL-FIXNUM</A><P></UL><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>
|