<div dir="ltr"><br><br><div class="gmail_quote">2008/8/23 Xavier Oswald <span dir="ltr">&lt;<a href="mailto:x.oswald@free.fr">x.oswald@free.fr</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 08:07 Fri 22 Aug &nbsp; &nbsp; , Jeremy Cowgar wrote:<br>
&gt; Good morning,<br>
&gt;<br>
&gt; I am having a slight problem figuring out this loop. I think I am doing it<br>
&gt; correct, but Lisaac does not think so, and I&#39;m sure it&#39;s right but I cannot<br>
&gt; figure out what it wants.<br>
&gt;<br>
&gt; - min args:ARRAY[NUMERIC] :NUMERIC &lt;-<br>
&gt; (<br>
&gt; &nbsp; + least:NUMERIC;<br>
&gt; &nbsp; least := UINTEGER_64.maximum;<br>
&gt;<br>
&gt; &nbsp; <a href="http://args.lower.to" target="_blank">args.lower.to</a> args.count do { i:INTEGER;<br>
&gt; &nbsp; &nbsp; ( args.item i &lt; least ).if { least := args.item i; }<br>
&gt; &nbsp; };<br>
&gt;<br>
&gt; &nbsp; least<br>
&gt; );<br>
&gt;<br>
&gt; The error I am getting is:<br>
&gt;<br>
&gt; Added &#39;)&#39;.<br>
&gt; ..... <a href="http://args.lower.to" target="_blank">args.lower.to</a> args.count do { i:INTEGER;<br>
&gt;<br>
&gt; The ^ is under { in that line. I then get the same errors for the<br>
&gt; same { as Added &#39;;&#39; and then finally Incorrect symbol.<br>
&gt;<br>
&gt; Any thoughts?<br>
<br>
don&#39;t forget &#39;;&#39; at the end of<br>
<br>
&nbsp;( args.item i &lt; least ).if { least := args.item i; };<br>
<br>
It can have a strange behaviour.</blockquote><div><br>If you forget the ;, the compiler &quot;think&quot; your block send something, so the error.<br><br>You can also use foreach :<br><br>- min args:ARRAY[NUMERIC] :NUMERIC &lt;-<br>
&nbsp;
(<br>
&nbsp;&nbsp; + least:NUMERIC;<br>
&nbsp;&nbsp; least := UINTEGER_64.maximum;<br>
<br>
&nbsp;&nbsp; <a href="http://args.lower.to/" target="_blank">args.foreach</a> { el : UINTEGER_64;<br>
&nbsp;&nbsp; &nbsp; ( args.item i &lt; least ).if { least := el; }<br>
&nbsp;&nbsp; };<br>
<br>
&nbsp;&nbsp; least<br>
);<br>&nbsp;<br>We have also to add min and max function in collections...<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
--<br>
 &nbsp;,&#39;&#39;`. &nbsp;Xavier Oswald &lt;<a href="mailto:x.oswald@free.fr">x.oswald@free.fr</a>&gt;<br>
&nbsp;: :&#39; : &nbsp;GNU/LINUX Debian Maintainer<br>
&nbsp;`. `&#39; &nbsp; GnuPG Key ID 0x88BBB51E<br>
 &nbsp; `- &nbsp; &nbsp;938D D715 6915 8860 9679 &nbsp;4A0C A430 C6AA 88BB B51E<br>
<br>
<br>
_______________________________________________<br>
Isaac-devel mailing list<br>
<a href="mailto:Isaac-devel@gna.org">Isaac-devel@gna.org</a><br>
<a href="https://mail.gna.org/listinfo/isaac-devel" target="_blank">https://mail.gna.org/listinfo/isaac-devel</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>---------------------<br>Isaac Project - <a href="http://isaacproject.u-strasbg.fr/">http://isaacproject.u-strasbg.fr/</a><br>
</div>