Re: Labeled Loops?

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

Jeremy Cowgar wrote:
> c.k.lester wrote:
> > > I think for consistency, for and while loops should be labeled the same.
> > They're not consistent now... so what do you mean?
> The means of labeling and addressing them:
> while 1 label "top" do
>     for a = 1 to 10 label "mid" do
>     end for
> end while
> 
> I do not think you should refer to the for loop as "a", I think when you want
> a label, you give it one for consistencies sake.

Can't it be simpler?

while 1 do "top"
  for a = 1 to 10 do "mid"
  end for
end while

or, if you absolutely need a "label" statement

while 1 do ~top
  for a = 1 to 10 do ~mid
  end for
end while

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

Search



Quick Links

User menu

Not signed in.

Misc Menu