digitalmars.D.bugs - [Issue 2531] New: DDoc not generated correctly for struct methods inside static if
- d-bugmail puremagic.com (31/31) Dec 21 2008 http://d.puremagic.com/issues/show_bug.cgi?id=2531
- d-bugmail puremagic.com (9/9) Jan 10 2009 http://d.puremagic.com/issues/show_bug.cgi?id=2531
http://d.puremagic.com/issues/show_bug.cgi?id=2531 Summary: DDoc not generated correctly for struct methods inside static if Product: D Version: 2.022 Platform: PC OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla digitalmars.com ReportedBy: dsimcha yahoo.com I've written a few templated classes and structs for which some methods are supposed to only exist in certain instantiations, and are therefore wrapped in static if blocks. It seems that DDoc doesn't document these properly, or at all. Example: /**A lame, utterly useless struct.*/ struct Foo(T) { /**Attempt one: Doc outside static if.*/ static if(is(T == uint)) { /**Attempt two: Inside.*/ void bar() {} } } Produces the following docs: test6 struct Foo(T); A lame, utterly useless struct. Page generated by Ddoc. --
Dec 21 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2531 dsimcha yahoo.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED Resolved in DMD 2.023. --
Jan 10 2009