Thread overview | |||||
---|---|---|---|---|---|
|
July 07, 2015 documenting compile-time constants | ||||
---|---|---|---|---|
| ||||
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. |
July 07, 2015 Re: documenting compile-time constants | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vlad Levenfeld | 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.
|
July 07, 2015 Re: documenting compile-time constants | ||||
---|---|---|---|---|
| ||||
Posted in reply to Rikki Cattermole | 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 |
Copyright © 1999-2021 by the D Language Foundation