[Issue 1748] Wrong stringof for templated classes

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Nov 15 20:54:09 PST 2008


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





------- Comment #5 from dhasenan at gmail.com  2008-11-15 22:54 -------
If you have a templated struct, it partially works already:
---
struct S(T) {}
S!(int) s;
pragma (msg, typeof(s).stringof); // prints S!(int)
pragma (msg, S!(int).stringof); // prints S
pragma (msg, (S!(int)).stringof); // prints S!(int)
---

The patch I just added gives the same output if you change 'struct' to 'class'.


-- 



More information about the Digitalmars-d-bugs mailing list