1. Re: Digest for EUforum at topica.com, issue 1098
- Posted by Igor Kachan <kinz at peterlink.ru> Jan 19, 2002
- 399 views
Hi Shawn, > Just yesterday i was thinking to myself, > too bad EUPHORIA doesn't have the loop > control of Java. Although Java includes it, goto is the least useful loop control. Something that works like the C continue, > and labeled exits like in Java would be better. > > Shawn Pringle There are many standard types of loop in EU, not just 2, for example, simplest ones : for i=1 to 10 do .... if n> 5 then exit end if .... if m > 1000 then return 5 end if --- from (loop and function) .... end for ----------- for i=2 to 10 by 2 do .... if n> 5 then exit end if --- from loop .... if m > 1000 then return end if --- from (loop and procedure) .... end for ----------- while i< 1000 do --- the first point of check .... i+=1 if k> 15 then exit end if --- the second point of check .... end while --------- while 1 do --- extremly fast loop without check on this point ..... ..... if condition1 then exit end if --- from loop ..... if conditionN then return end if --- from (loop and procedure) ..... end while -------- Just try what you really want and you do not need any Java loops or C loops or somewhat else from the loops world. This is EU power -- ALL you want just in two main forms. Regards, Igor Kachan kinz at peterlink.ru