digitalmars.D.learn - DDOC with class templates
- Klaus Oberhofer (27/27) Nov 02 2005 I have the following code snippet:
- Sean Kelly (3/8) Nov 02 2005 I'm fairly certain it's a known bug.
- Garett Bass (5/5) Nov 02 2005 It should be interesting to see if the documentation is
- Klaus Oberhofer (3/13) Nov 03 2005 Ok, I tried this but documentation is not generated.
I have the following code snippet: <code> /** Test module */ module test; /// class to test DDOC on members class TestMembers(TemplateArg) { public: /** a static method Params: idx = index */ static void PublicStaticMethod(int idx) { } } void main() { } </code> When I invoke dmd (V0.136) the documentation for "PublicStaticMethod" is not generated. If I turn the template into a class by removing "(TemplateArg)" everything works as expected. Do I miss anything or is this a known/unknown bug ?
Nov 02 2005
Klaus Oberhofer wrote:When I invoke dmd (V0.136) the documentation for "PublicStaticMethod" is not generated. If I turn the template into a class by removing "(TemplateArg)" everything works as expected. Do I miss anything or is this a known/unknown bug ?I'm fairly certain it's a known bug. Sean
Nov 02 2005
It should be interesting to see if the documentation is generated if you instantiate the generic, e.g.: new TestMembers!(int)(); I have noticed that the compiler seems to ignore a template until it is instantiated
Nov 02 2005
"Garett Bass" <garettbass studiotekne.com> wrote in news:dkba39$htf$1 digitaldaemon.com:It should be interesting to see if the documentation is generated if you instantiate the generic, e.g.: new TestMembers!(int)(); I have noticed that the compiler seems to ignore a template until it is instantiatedOk, I tried this but documentation is not generated.
Nov 03 2005