_continue_ as NOP

Shane Bouslough shane at inferno.peri.com
Sat Feb 23 05:19:21 AEST 1991


Consider the following single statement while loop:

	while ( actual work happens in here )
		;

I have seen _continue_ used to make the NOP semi-colon a
little less invisible:

	while ( actual work happens in here )
		continue;

What is the general consensus of this practice? Please praise,
yawn, or flame at will.



More information about the Comp.lang.c mailing list