Re: New keyword added: continue

new topic     » goto parent     » topic index » view thread      » older message » newer message

c.k.lester wrote:
> 
> ken mortenson wrote:
> > 
> > Loop
> >   x = Index
> >   Loop
> >     y = Index
> >     array(x,y)=whatever.
> >     if (y>9) exit
> >   End Loop
> >   if (x>12) exit
> > End Loop
> 
> I'm... strangely... attracted to it. 8|

I was thinking we have:

loop do

until ... 

Why not

loop do
...
again or repeat

However, I'd use a while loop or until loop for examples such as if (x>12) exit.
Also you are assigning y = Index, x = Index, therefore, those are probably being
incremented somewhere that you are not showing making the above loop probably
more suited to a for loop?

--
Jeremy Cowgar
http://jeremy.cowgar.com

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu