[Issue 1748] Wrong stringof for templated classes

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Nov 10 11:35:29 PST 2008


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





------- Comment #2 from dhasenan at gmail.com  2008-11-10 13:35 -------
It looks like fixing this will require giving Dsymbol a reference to a
TemplateInstance, eliminating the nesting part (or giving an option to omit
it), then modifying *::toChars to check if it's in a template instance and, if
so, prepend the template instance's string representation.

You can add the reference at template.c:3026
Only types (typedefs, classes, structs) need modification in their toChars
methods.

Expected time required to make this change: 30-60 minutes. I'll make it
tonight, if I can get llvm to compile.


-- 



More information about the Digitalmars-d-bugs mailing list