Thread overview | ||||||
---|---|---|---|---|---|---|
|
November 02, 2005 DDOC with class templates | ||||
---|---|---|---|---|
| ||||
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 ? |
November 02, 2005 Re: DDOC with class templates | ||||
---|---|---|---|---|
| ||||
Posted in reply to Klaus Oberhofer | 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
|
November 02, 2005 Re: DDOC with class templates | ||||
---|---|---|---|---|
| ||||
Posted in reply to Klaus Oberhofer | 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 |
November 03, 2005 Re: DDOC with class templates | ||||
---|---|---|---|---|
| ||||
Posted in reply to Garett Bass | "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 instantiated
>
>
>
Ok, I tried this but documentation is not generated.
|
Copyright © 1999-2021 by the D Language Foundation