Else clauses for loops

Bernard Helyer b.helyer at gmail.com
Wed Apr 13 06:45:11 PDT 2011


You could wrap the loop in an if clause:

    if (condition) while (true) {
        // ...
    } else {
        // ...
    }


More information about the Digitalmars-d-learn mailing list