www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13327] New: Specification of anonymous enum with one member

https://issues.dlang.org/show_bug.cgi?id=13327

          Issue ID: 13327
           Summary: Specification of anonymous enum with one member is
                    missed
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: spec
          Severity: normal
          Priority: P1
         Component: websites
          Assignee: nobody puremagic.com
          Reporter: s.trump gmail.com
            Blocks: 10233

Official documentation on page http://dlang.org/enum.html in "Manifest
Constants" section has an example of anonymous enum with a single member.

 enum i = 4;      // i is 4 of type int
 enum long l = 3; // l is 3 of type long
But rules on the same page don't have description of this case. Specification says that members are always enclosed with braces '{' and '}'. I think documentation must be updated. --
Aug 18 2014