www.digitalmars.com         C & C++   DMDScript  

D - Labeling loop

reply nicO <nicolas.boulay ifrance.com> writes:
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
Aug 21 2001
parent "Walter" <walter digitalmars.com> writes:
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
Aug 22 2001