RE: goto

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

Would it be difficult to be able to label loops?

eg.
for a = 1 to 100 as Main do
    for b = 1 to a do
       for c = 1 to 40 do

          ...

          if <condition> then
               exit Main
          end if
       end for
     end for
end for

--as in, would exit down to this comment.

If that is possible, then it would make life a lot easier. That could 
replace both a break and a continue.

Take wind away from the goto crowd too... :P

=====================================================
.______<-------------------\__
/ _____<--------------------__|===
||_    <-------------------/
\__| Mr Trick

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

Search



Quick Links

User menu

Not signed in.

Misc Menu