39 lines
5 KiB
HTML
39 lines
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 2.4.8.4</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="02_dhc.htm">
|
||
|
<LINK REL=UP HREF="02_dh.htm">
|
||
|
<LINK REL=NEXT HREF="02_dhda.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="02_dhc.htm"><IMG WIDTH=40 HEIGHT=40 ALT="[Previous]" SRC="../Graphics/Prev.gif" ALIGN=Bottom></A><A REL=UP HREF="02_dh.htm"><IMG WIDTH=40 HEIGHT=40 ALT="[Up]" SRC="../Graphics/Up.gif" ALIGN=Bottom></A><A REL=NEXT HREF="02_dhda.htm"><IMG WIDTH=40 HEIGHT=40 ALT="[Next]" SRC="../Graphics/Next.gif" ALIGN=Bottom></A></H1>
|
||
|
|
||
|
<HR>
|
||
|
|
||
|
<H2>
|
||
|
2.4.8.4 Sharpsign Asterisk</H2> <P>
|
||
|
<B>Syntax:</B> <TT>#*<<</TT><I>bits</I><TT>>></TT> <P>
|
||
|
A <A REL=DEFINITION HREF="26_glo_s.htm#simple_bit_vector"><I>simple bit vector</I></A> is constructed containing the indicated <A REL=DEFINITION HREF="26_glo_b.htm#bit"><I>bits</I></A> (<TT>0</TT>'s and <TT>1</TT>'s), where the leftmost <I>bit</I> has index zero and the subsequent <I>bits</I> have increasing indices. <P>
|
||
|
<B>Syntax:</B> <TT>#<<</TT><I>n</I><TT>>>*<<</TT><I>bits</I><TT>>></TT> <P>
|
||
|
With an argument <I>n</I>, the <A REL=DEFINITION HREF="26_glo_v.htm#vector"><I>vector</I></A> to be created is of <A REL=DEFINITION HREF="26_glo_l.htm#length"><I>length</I></A> <I>n</I>. If the number of <I>bits</I> is less than <I>n</I> but greater than zero, the last bit is used to fill all remaining bits of the <A REL=DEFINITION HREF="26_glo_b.htm#bit_vector"><I>bit vector</I></A>. <P>
|
||
|
The notations <TT>#*</TT> and <TT>#0*</TT> each denote an empty <A REL=DEFINITION HREF="26_glo_b.htm#bit_vector"><I>bit vector</I></A>. <P>
|
||
|
Regardless of whether the optional numeric argument <I>n</I> is provided, the <A REL=DEFINITION HREF="26_glo_t.htm#token"><I>token</I></A> that follows the <A REL=DEFINITION HREF="26_glo_a.htm#asterisk"><I>asterisk</I></A> is delimited by a normal <A REL=DEFINITION HREF="26_glo_t.htm#token"><I>token</I></A> delimiter. However, (unless the <A REL=DEFINITION HREF="26_glo_v.htm#value"><I>value</I></A> of <A REL=DEFINITION HREF="v_rd_sup.htm#STread-suppressST"><B>*read-suppress*</B></A> is <A REL=DEFINITION HREF="26_glo_t.htm#true"><I>true</I></A>) an error of <A REL=DEFINITION HREF="26_glo_t.htm#type"><I>type</I></A> <A REL=DEFINITION HREF="e_rder_e.htm#reader-error"><B>reader-error</B></A> is signaled if that <A REL=DEFINITION HREF="26_glo_t.htm#token"><I>token</I></A> is not composed entirely of <TT>0</TT>'s and <TT>1</TT>'s, or if <I>n</I> was supplied and the <A REL=DEFINITION HREF="26_glo_t.htm#token"><I>token</I></A> is composed of more than <I>n</I> <I>bits</I>, or if <I>n</I> is greater than one, but no <I>bits</I> were specified. Neither a <A REL=DEFINITION HREF="26_glo_s.htm#single_escape"><I>single escape</I></A> nor a <A REL=DEFINITION HREF="26_glo_m.htm#multiple_escape"><I>multiple escape</I></A> is permitted in this <A REL=DEFINITION HREF="26_glo_t.htm#token"><I>token</I></A>. <P>
|
||
|
For information on how the <A REL=DEFINITION HREF="26_glo_l.htm#lisp_printer"><I>Lisp printer</I></A> prints <A REL=DEFINITION HREF="26_glo_b.htm#bit_vector"><I>bit vectors</I></A>, see <A REL=CHILD HREF="22_acf.htm">Section 22.1.3.6 (Printing Bit Vectors)</A>. <P>
|
||
|
|
||
|
|
||
|
<A REL=CHILD HREF="02_dhda.htm"><H2>
|
||
|
2.4.8.4.1 Examples of Sharpsign Asterisk</H2></A><P><P><HR>The following <A REL=META HREF="../Front/X3J13Iss.htm">X3J13 cleanup issue</A>, <I>not part of the specification</I>, applies to this section:<P><UL><LI> <A REL=CHILD HREF="../Issues/iss317.htm">SHARP-STAR-DELIMITER:NORMAL-DELIMITER</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>
|