[Issue 193] New: DDoc generates incorrect expansion for template decls; breaks CandyDoc

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jun 14 00:17:45 PDT 2006


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

           Summary: DDoc generates incorrect expansion for template decls;
                    breaks CandyDoc
           Product: D
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: critical
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: someidiot at earthlink.net


When DDoc is presented with a templated decl, it produces multiple expansions
of D_PSYMBOL instead of just one. For example, using the default -D settings:

class Foo(T) : Bar

becomes:

<dt><big>class <u><u>Foo</u></u>(T): Bar;
</big></dt>

The double <u> has no adverse effect in this case, but the multiple expansions
can wreak havoc for other D_PSYMBOL definitions such as the one used by
CandyDoc (which emit script calls, etc)

In contrast, a non templated:

class Foo : Bar

becomes:

<dt><big>class <u>Foo</u>: Bar;
</big></dt>


-- 




More information about the Digitalmars-d-bugs mailing list