do-while loops

Andrej Mitrovic andrej.mitrovich at gmail.com
Wed Dec 28 07:01:09 PST 2011


A very small cheat:
void main()
{
    if (int x = 0)
    do {
        x = 5;
    } while (x != 5);
}

Only works for this simple case though. Put your post in d.general, I
totally agree with it as well.


More information about the Digitalmars-d-learn mailing list