DDoc ignores mixins

Jonathan M Davis jmdavisProg at gmx.com
Sun May 6 05:30:13 PDT 2012


On Sunday, May 06, 2012 16:17:06 Gor Gyolchanyan wrote:
> Is it supposed to be like this?
> 
> /// Generates docs for the constructor
> struct A
> {
>     ///
>     this(int i) { }
> }
> 
> /// Does not generate docs for the constructor
> Struct B
> {
>     ///
>     mixin("this(int i) { }");
> }

That's how it currently works. I suspect that this particular case was never 
even considered when ddoc was created, but I don't know. Regardless, I believe 
that it would be an enhancement for it to work otherwise. It certainly would 
solve some problems though, so it should probably happen. I can find two 
related issues:

http://d.puremagic.com/issues/show_bug.cgi?id=648
http://d.puremagic.com/issues/show_bug.cgi?id=2420

- Jonathan M Davis


More information about the Digitalmars-d mailing list