digitalmars.D.bugs - [Issue 4559] New: Disallowing single semicolons
- d-bugmail puremagic.com (27/27) Aug 01 2010 http://d.puremagic.com/issues/show_bug.cgi?id=4559
http://d.puremagic.com/issues/show_bug.cgi?id=4559 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 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