File r37/lisp/csl/html/r37_0216.html artifact 8c5990ee26 part of check-in b7c3de82ef



<A NAME=REAL>

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



<B>REAL</B> _ _ _  _ _ _  _ _ _  _ _ _ <B>declaration</B><P>
<P>
 
The <em>real</em> declaration must be made immediately after a 

<A HREF=r37_0040.html>begin</A> (or other variable declaration such as 
<A HREF=r37_0197.html>integer</A> 
and 
<A HREF=r37_0218.html>scalar</A>) and declares local integer variables. They are
 
initialized to zero. 
 <P> <H3> 
syntax: </H3>
<P>
<P>
<em>real</em>&lt;identifier&gt;{,&lt;identifier&gt;}* 
<P>
<P>
<P>
&lt;identifier&gt; may be any valid REDUCE identifier, except 
<em>t</em> or <em>nil</em>. 
<P>
<P>
Real variables remain local, and do not share values with variables of the 
same name outside the 
<A HREF=r37_0040.html>begin</A>...<em>end</em> block. When the 
block is finished, the variables are removed. You may use the words 

<A HREF=r37_0197.html>integer</A> or 
<A HREF=r37_0218.html>scalar</A> in the place of <em>real</em>. 
<em>real</em> does not indicate typechecking by the current REDUCE; it is 
only for your own information. Declaration statements must immediately 
follow the <em>begin</em>, without a semicolon between <em>begin</em> and the 
first variable declaration. 
<P>
<P>
Any variables used inside a <em>begin</em>...<em>end</em> 
<A HREF=r37_0041.html>block</A> 
that were not declared <em>scalar</em>, <em>real</em> or <em>integer</em> are 
global, and any change made to them inside the block affects their global 
value. Any 
<A HREF=r37_0188.html>array</A> or 
<A HREF=r37_0345.html>matrix</A> declared inside a block is always 
global. 
<P>
<P>
<P>


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