1
0
Fork 0
cl-sites/HyperSpec-7-0/HyperSpec/Body/21_ab.htm

44 lines
5.6 KiB
HTML
Raw Permalink Normal View History

2024-04-01 10:24:07 +02:00
<!-- 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 21.1.2</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="21_aac.htm">
<LINK REL=UP HREF="21_a.htm">
<LINK REL=NEXT HREF="21_ac.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="21_aac.htm"><IMG WIDTH=40 HEIGHT=40 ALT="[Previous]" SRC="../Graphics/Prev.gif" ALIGN=Bottom></A><A REL=UP HREF="21_a.htm"><IMG WIDTH=40 HEIGHT=40 ALT="[Up]" SRC="../Graphics/Up.gif" ALIGN=Bottom></A><A REL=NEXT HREF="21_ac.htm"><IMG WIDTH=40 HEIGHT=40 ALT="[Next]" SRC="../Graphics/Next.gif" ALIGN=Bottom></A></H1>
<HR>
<H2>
21.1.2 Stream Variables</H2> <P>
<A REL=DEFINITION HREF="26_glo_v.htm#variable"><I>Variables</I></A> whose <A REL=DEFINITION HREF="26_glo_v.htm#value"><I>values</I></A> must be <A REL=DEFINITION HREF="26_glo_s.htm#stream"><I>streams</I></A> are sometimes called <A REL=DEFINITION HREF="26_glo_s.htm#stream_variable"><I>stream variables</I></A>. <P>
Certain <A REL=DEFINITION HREF="26_glo_s.htm#stream_variable"><I>stream variables</I></A> are defined by this specification to be the proper source of input or output in various <A REL=DEFINITION HREF="26_glo_s.htm#situation"><I>situations</I></A> where no specific <A REL=DEFINITION HREF="26_glo_s.htm#stream"><I>stream</I></A> has been specified instead. A complete list of such <A REL=DEFINITION HREF="26_glo_s.htm#standardized"><I>standardized</I></A> <A REL=DEFINITION HREF="26_glo_s.htm#stream_variable"><I>stream variables</I></A> appears in the next figure. The consequences are undefined if at any time the <A REL=DEFINITION HREF="26_glo_v.htm#value"><I>value</I></A> of any of these <A REL=DEFINITION HREF="26_glo_v.htm#variable"><I>variables</I></A> is not an <A REL=DEFINITION HREF="26_glo_o.htm#open"><I>open</I></A> <A REL=DEFINITION HREF="26_glo_s.htm#stream"><I>stream</I></A>. <P>
<A NAME="standardizedstreamvars"> <PRE>
Glossary Term Variable Name
<A REL=DEFINITION HREF="26_glo_d.htm#debug_iSLo">debug I/O</A> <A REL=DEFINITION HREF="v_debug_.htm#STdebug-ioST">*debug-io*</A>
<A REL=DEFINITION HREF="26_glo_e.htm#error_output">error output</A> <A REL=DEFINITION HREF="v_debug_.htm#STerror-outputST">*error-output*</A>
<A REL=DEFINITION HREF="26_glo_q.htm#query_iSLo">query I/O</A> <A REL=DEFINITION HREF="v_debug_.htm#STquery-ioST">*query-io*</A>
<A REL=DEFINITION HREF="26_glo_s.htm#standard_input">standard input</A> <A REL=DEFINITION HREF="v_debug_.htm#STstandard-inputST">*standard-input*</A>
<A REL=DEFINITION HREF="26_glo_s.htm#standard_output">standard output</A> <A REL=DEFINITION HREF="v_debug_.htm#STstandard-outputST">*standard-output*</A>
<A REL=DEFINITION HREF="26_glo_t.htm#terminal_iSLo">terminal I/O</A> <A REL=DEFINITION HREF="v_termin.htm#STterminal-ioST">*terminal-io*</A>
<A REL=DEFINITION HREF="26_glo_t.htm#trace_output">trace output</A> <A REL=DEFINITION HREF="v_debug_.htm#STtrace-outputST">*trace-output*</A>
</PRE>
<P><B>Figure 21-6. Standardized Stream Variables</B></A> <P>
Note that, by convention, <A REL=DEFINITION HREF="26_glo_s.htm#standardized"><I>standardized</I></A> <A REL=DEFINITION HREF="26_glo_s.htm#stream_variable"><I>stream variables</I></A> have names ending in ``<TT>-input*</TT>'' if they must be <A REL=DEFINITION HREF="26_glo_i.htm#input"><I>input</I></A> <A REL=DEFINITION HREF="26_glo_s.htm#stream"><I>streams</I></A>, ending in ``<TT>-output*</TT>'' if they must be <A REL=DEFINITION HREF="26_glo_o.htm#output"><I>output</I></A> <A REL=DEFINITION HREF="26_glo_s.htm#stream"><I>streams</I></A>, or ending in ``<TT>-io*</TT>'' if they must be <A REL=DEFINITION HREF="26_glo_b.htm#bidirectional"><I>bidirectional</I></A> <A REL=DEFINITION HREF="26_glo_s.htm#stream"><I>streams</I></A>. <P>
User programs may <A REL=DEFINITION HREF="26_glo_a.htm#assign"><I>assign</I></A> or <A REL=DEFINITION HREF="26_glo_b.htm#bind"><I>bind</I></A> any <A REL=DEFINITION HREF="26_glo_s.htm#standardized"><I>standardized</I></A> <A REL=DEFINITION HREF="26_glo_s.htm#stream_variable"><I>stream variable</I></A> except <A REL=DEFINITION HREF="v_termin.htm#STterminal-ioST"><B>*terminal-io*</B></A>. <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>