Bug 13327 – Specification of anonymous enum with one member is missed

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dlang.org
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-08-18T20:19:00Z
Last change time
2015-12-16T18:50:52Z
Keywords
spec
Assigned to
nobody
Creator
s.trump
Blocks
10233

Comments

Comment #0 by s.trump — 2014-08-18T20:19:09Z
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.
Comment #1 by briancschott — 2014-08-18T20:23:52Z
This actually is documented, but it somewhere completely different: http://dlang.org/declaration.html#AutoDeclaration
Comment #2 by s.trump — 2014-08-19T11:38:54Z
(In reply to briancschott from comment #1) > This actually is documented, but it somewhere completely different: > http://dlang.org/declaration.html#AutoDeclaration Yes, you are right. Thanks to your comment I've found error in my D parser :)
Comment #3 by hsteoh — 2014-09-18T19:00:19Z
Should this be closed then? Or should we add a link from enum.html to declaration.html?
Comment #4 by github-bugzilla — 2015-07-08T00:03:35Z
Commits pushed to master at https://github.com/D-Programming-Language/dlang.org https://github.com/D-Programming-Language/dlang.org/commit/a44766a7e3515f16a77a8a0beba067c70c9a6ce6 Issue 13327 - Clarify manifest constant grammar https://github.com/D-Programming-Language/dlang.org/commit/72efc23e7b05b56fb31ef0b066e9cebed5d35af4 Merge pull request #858 from Hackerpilot/issue-13327 Issue 13327 - Clarify manifest constant grammar
Comment #5 by github-bugzilla — 2015-10-04T18:21:49Z
Comment #6 by mathias.lang — 2015-12-16T18:50:52Z
Brian's P.R. clarifying it had been merged, closing.