www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 4559] New: Disallowing single semicolons


           Summary: Disallowing single semicolons
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: bearophile_hugs eml.cc

--- Comment #0 from bearophile_hugs eml.cc 2010-08-01 14:24:39 PDT ---
A low-priority idea.
As suggested by Andrei the D language can disallow naked instructions composed
by a single semicolon:

void main() {
    int x;; // single semicolons not allowed
    goto END;
    END:; // single semicolons not allowed
    // END: {} // OK

(D already disallows single semicolons at the end of for statements, etc, so
this can make the language more uniform.)

Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 01 2010