Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > bd5c3d824c3db63ffd9226c15941e6ad > files > 1462

mozart-1.4.0-1mdv2010.0.i586.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>2 Loop Support</TITLE><LINK href="ozdoc.css" rel="stylesheet" type="text/css"></HEAD><BODY><TABLE align="center" border="0" cellpadding="6" cellspacing="6" class="nav"><TR bgcolor="#DDDDDD"><TD><A href="node1.html#chapter.macro">&lt;&lt; Prev</A></TD><TD><A href="index.html">- Up -</A></TD></TR></TABLE><DIV id="chapter.loop"><H1><A name="chapter.loop">2 Loop Support</A></H1><P>A new loop facility has now been integrated into the Oz language. It was greatly inspired by the Common Lisp loop macro. The language now has one additional <CODE>loop</CODE> keyword. The syntax of the loop macro is: </P><BLOCKQUOTE class="code"><CODE>loop&nbsp;<SPAN class="keyword">...</SPAN>&nbsp;<SPAN class="keyword">end</SPAN></CODE></BLOCKQUOTE><P> Within the scope of the <CODE>loop</CODE> macro, a number of local macros are allowed and described below.</P><HR><UL class="toc"><LI><A href="node6.html#section.loop.iterators">2.1 Iterators</A></LI></UL><UL class="toc"><LI><A href="node7.html#section.loop.control">2.2 Control</A></LI></UL><UL class="toc"><LI><A href="node8.html#section.loop.accu">2.3 Accumulators</A></LI></UL></DIV><TABLE align="center" border="0" cellpadding="6" cellspacing="6" class="nav"><TR bgcolor="#DDDDDD"><TD><A href="node1.html#chapter.macro">&lt;&lt; Prev</A></TD><TD><A href="index.html">- Up -</A></TD></TR></TABLE><HR><ADDRESS><A href="http://www.ps.uni-sb.de/~duchier/">Denys&nbsp;Duchier</A><BR><SPAN class="version">Version 1.4.0 (20090610)</SPAN></ADDRESS></BODY></HTML>