RFC: Behavior of continue in do/while loops.

BCS BCS at pathlink.com
Wed Sep 12 14:11:17 PDT 2007


Downs wrote:
> do {
> 	receive;
> 	if (isChunked) {
> 		if (chunkedDownloading) continue;
> 		break;
> 	}
> } while (notReceivedEnough)

I think this will get you the same result

do {
	receive;
} while (isChunked && chunkedDownloading && notReceivedEnough)



More information about the Digitalmars-d mailing list