Hi,

thanks, I thought this is an endless loop until the inner condition is fulfilled, not really noting, that 0==false (one more reason to use true/false instead 1/0, IMHO).

Can you explain the trick, why you use a one-time-loop instead of a single 
statement?

-Ulf


Am 16.01.2014 19:13, schrieb roger riggs:
Hi,

The current do {...} while(0) is the established idiom in the jdk.

It does not have the potential problem of unintentionally allowing
an infinite loop if the body contains a 'continue'.

Roger

On 1/16/2014 12:56 PM, Ulf Zibis wrote:
Am 16.01.2014 17:26, schrieb roger riggs:
Please review:

webrev:
http://cr.openjdk.java.net/~rriggs/webrev-jnu-check-rename-8031737/

I more would like a "while (true)" loop, rather than a "do" loop.

-Ulf




Reply via email to