Summary: Required do-while ending semicolon
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: accepts-invalid
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from 2010-06-23 04:42:34 PDT ---
This code compiles with v2.047, but the do-while misses the ending semicolon:

void main() {
    do {
    } while (false)

Turning this kind of code into a syntax error makes this syntax more consistent
with the other parts of D syntax and can reduce programmer's confusion (because
the semicolon clearly denotes the end of something instead of a possible start
of a new while loop).
I prefer a language that doesn't need ending semicolons, but in D2 requiring a
semicolon there is better.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to