[Issue 4559] New: Disallowing single semicolons
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Aug 1 14:24:43 PDT 2010
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 at puremagic.com
ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at 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: -------
More information about the Digitalmars-d-bugs
mailing list