[Issue 648] DDoc: unable to document mixin statement

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jan 21 11:50:20 PST 2012


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


Jonas Drewsen <jdrewsen at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jdrewsen at gmail.com


--- Comment #2 from Jonas Drewsen <jdrewsen at gmail.com> 2012-01-21 11:50:17 PST ---
(In reply to comment #1)
> (In reply to comment #0)
> > /// this is a class
> > class A
> > {
> > /// This mixin will bla bla bla
> > mixin MyMixin!();
> > }
> > 
> > this will only generate docs for the class. not the mixin.
> > Some will probably consider this a feature request, but I'd call it a bug...
> > 
> 
> The same occurs with mixin declarations (DMD 1.014 on linux):
> 
> /// Documentation for foo.
> mixin("int foo;");
> 
> mixin("int foo; /// Documentation for foo.");
> 
> And docs are not generated for foo or bar.
> 
> Gregor Richards pointed out in 
> news://news.digitalmars.com:119/f1m3u7$26g8$1@digitalmars.com
> that mixins are parsed much later than ddoc comments.
> 
> But I would also consider this a bug.

Comment 1 is a duplicate of bug 2420

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list