August 21, 2001 Labeling loop | ||||
---|---|---|---|---|
| ||||
I think it coulb interresting to label the for and while loop. So it could much easy to get out of the loop with break or continue. If there many loop, only one break would be necessary. label : for (;;){ for(;;) { print("Toto"); break label; } } nicO |
August 22, 2001 Re: Labeling loop | ||||
---|---|---|---|---|
| ||||
Posted in reply to nicO | Already implemented! -Walter nicO wrote in message <3B82D8A7.E1A4CE13@ifrance.com>... >I think it coulb interresting to label the for and while loop. So it could much easy to get out of the loop with break or continue. If there many loop, only one break would be necessary. > >label : for (;;){ >for(;;) > { > print("Toto"); > break label; > } >} > >nicO |
Copyright © 1999-2021 by the D Language Foundation