Musings on infinite loops and not reachable returns

bearophile bearophileHUGS at lycos.com
Tue Mar 25 14:08:50 PDT 2014


Chris Williams:

> I'm not seeing it. "while (true)" is no more an infinite loop 
> than "for (i = 0; i < x; i++)", if the body of the while has a 
> break or return statement.

I see, so there's nothing to improve here :-)

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list