[Issue 13327] New: Specification of anonymous enum with one member is missed
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Aug 18 13:19:09 PDT 2014
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 at puremagic.com
Reporter: s.trump at 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.
--
More information about the Digitalmars-d-bugs
mailing list