Artifact 5b38d0246e3b1e5b0d27c674c3deb663158f4b787d3008c15ccabb0ae8d193e2:
- Executable file
r37/lisp/csl/html/r37_0050.html
— part of check-in
[f2fda60abd]
at
2011-09-02 18:13:33
on branch master
— Some historical releases purely for archival purposes
git-svn-id: https://svn.code.sf.net/p/reduce-algebra/code/trunk/historical@1375 2bfe0521-f11c-4a00-b80e-6202646ff360 (user: arthurcnorman@users.sourceforge.net, size: 1146) [annotate] [blame] [check-ins using] [more...]
<A NAME=GOTO> <TITLE>GOTO</TITLE></A> <b><a href=r37_idx.html>INDEX</a></b><p><p> <B>GOTO</B> _ _ _ _ _ _ _ _ _ _ _ _ <B>command</B><P> <P> Inside a <em>begin</em>...<em>end</em> <A HREF=r37_0041.html>block</A>, <em>goto</em>, or preferably, <em>go to</em>, transfers flow of control to a labeled statement. <P> <H3> syntax: </H3> <P> <P> <em>go to</em><labeled_statement> or <em>goto</em> <labeled_statement > <P> <P> <P> <labeled_statement> is of the form <label> <em>:</em><statement > <P> <P> <P> <H3> examples: </H3> <P><PRE><TT> procedure dumb(a); begin scalar q; go to lab; q := df(a**2 - sin(a),a); write q; lab: return a end; DUMB dumb(17); 17 </TT></PRE><P><em>go to</em>can only be used inside a <em>begin</em>...<em>end </em> <A HREF=r37_0041.html>block</A>, and inside the block only statements at the top level can be labeled, not ones inside <em><<</em>...<em>>></em>, <A HREF=r37_0228.html>while</A>...<em>do</em>, etc. <P> <P> <P>