File r37/lisp/csl/html/r37_0021.html artifact 52c4ea1f2f part of check-in d58ccc1261



<A NAME=dollar>

<TITLE>dollar</TITLE></A>
<b><a href=r37_idx.html>INDEX</a></b><p><p>



<B>$</B> _ _ _ <B>DOLLAR</B> _ _ _  _ _ _  _ _ _  _ _ _ <B>command</B><P>
<P>
 
The dollar sign is a statement delimiter, indicating results are not to be 
printed when used in interactive mode. 
<P>
<P>
 <P> <H3> 
examples: </H3>
<P><PRE><TT>

(x+1)**2$ </TT></PRE><P>The workspace is set to x^2 + 2x + 1 
 but nothing shows on the screen<P><PRE><TT>


ws; 

   2
  X   + 2*X + 1

</TT></PRE><P> 
<P>
<P>
Entering a <em>Return</em> without a semicolon or dollar sign results in a 
prompt on the following line. A semicolon or dollar sign can 
be added at this point to execute the statement. In interactive mode, a 
statement that ends with a dollar sign <em>$</em> and a <em>Return</em> is 
executed, but the results not printed. 
<P>
<P>
Inside a 
<A HREF=r37_0038.html>group</A> statement <em>&lt;&lt;</em>...<em>&gt;&gt;</em> 

or a <em>begin</em>...<em>end</em> 
<A HREF=r37_0041.html>block</A>, a 
semicolon or dollar sign separates individual REDUCE statements. Since 
results are not printed from a 
<A HREF=r37_0041.html>block</A> without a specific 

<A HREF=r37_0058.html>return</A><P>
<P>
statement, there is no difference between using the semicolon or dollar 
sign. 
<P>
<P>
In a group statement, the last value produced is the value returned by the 
group statement. Thus, if a semicolon or dollar sign is placed between the 
last statement and the ending brackets, the group statement returns the 
value 0 or nil, rather than the value of the last statement. 
<P>
<P>
<P>
<P>


REDUCE Historical
REDUCE Sourceforge Project | Historical SVN Repository | GitHub Mirror | SourceHut Mirror | NotABug Mirror | Chisel Mirror | Chisel RSS ]