digitalmars.D.bugs - [Issue 6165] New: Anonymous enums specification
- d-bugmail puremagic.com (40/40) Jun 16 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6165
- d-bugmail puremagic.com (9/9) Jan 20 2012 http://d.puremagic.com/issues/show_bug.cgi?id=6165
- d-bugmail puremagic.com (9/9) Jan 20 2012 http://d.puremagic.com/issues/show_bug.cgi?id=6165
http://d.puremagic.com/issues/show_bug.cgi?id=6165 Summary: Anonymous enums specification Product: D Version: D2 Platform: Other OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: bugzilla digitalmars.com 14:00:25 PDT --- I believe there is an omission in the D specification document. The page for enums specification http://d-programming-language.org/enum.html defines enum body syntax as follows: EnumBody: ; { EnumMembers } Should it not be EnumBody: EnumMember ; { EnumMembers } or perhaps EnumBody: EnumMembers ; { EnumMembers } Otherwise, I can't quite grasp how following enums definitions are legal: enum X = 4; enum mega = 1024 * 1024, pi = 3.14, euler = 2.72, greet = "Hello"; (Both of the above enums are accepted by dmd v2.050). Regards, Lennart -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jun 16 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6165 Commit pushed to https://github.com/D-Programming-Language/d-programming-language.org https://github.com/D-Programming-Language/d-programming-language.org/commit/c69c19b62bdee9a3f18f5d07dc41383c2d9465fe fix Issue 6165 - Anonymous enums specification -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 20 2012
http://d.puremagic.com/issues/show_bug.cgi?id=6165 Walter Bright <bugzilla digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 20 2012