OT: for (;;) {} vs while (true) {}

rikki cattermole via Digitalmars-d digitalmars-d at puremagic.com
Fri Nov 25 00:46:24 PST 2016


On 25/11/2016 8:27 PM, unDEFER wrote:
> Why you consider only 2 options?
> Use "do {} while (true);" :-)

The condition only executes after a single iteration.
So it is not the same code flow.


More information about the Digitalmars-d mailing list