www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - documenting compile-time constants

reply "Vlad Levenfeld" <vlevenfeld gmail.com> writes:
How do I ddoc an enum constant? Putting ddoc comments above 
functions and structs woorks fine but ddocing an enum constant 
doesn't generate any documentation.
Jul 06 2015
parent reply Rikki Cattermole <alphaglosined gmail.com> writes:
On 7/07/2015 1:05 p.m., Vlad Levenfeld wrote:
 How do I ddoc an enum constant? Putting ddoc comments above functions
 and structs woorks fine but ddocing an enum constant doesn't generate
 any documentation.
If: /// enum MyValue = 8.2f; does not generate documentation upon its creation, please file a bug. If: /// enum MyEnum { /// MYValue = 8.2f } does not generate documentation upon its creation, please file a bug. If: /// enum MyEnum { MYValue = 8.2f } does not generate documentation upon its creation, please see the previous answer.
Jul 06 2015
parent "Vlad Levenfeld" <vlevenfeld gmail.com> writes:
On Tuesday, 7 July 2015 at 03:30:40 UTC, Rikki Cattermole wrote:
 On 7/07/2015 1:05 p.m., Vlad Levenfeld wrote:
 How do I ddoc an enum constant? Putting ddoc comments above 
 functions
 and structs woorks fine but ddocing an enum constant doesn't 
 generate
 any documentation.
If: /// enum MyValue = 8.2f; does not generate documentation upon its creation, please file a bug. If: /// enum MyEnum { /// MYValue = 8.2f } does not generate documentation upon its creation, please file a bug. If: /// enum MyEnum { MYValue = 8.2f } does not generate documentation upon its creation, please see the previous answer.
Ok, done. https://issues.dlang.org/show_bug.cgi?id=14778
Jul 06 2015