http://d.puremagic.com/issues/show_bug.cgi?id=9460
Summary: stringof on templated classes fails to list the
template arguments of the type
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Jonathan M Davis <[email protected]> 2013-02-06 00:44:25
PST ---
This code
class C(T) {}
struct S(T) {}
pragma(msg, (C!int).stringof);
pragma(msg, (S!int).stringof);
void main() {}
prints out
C
S!(int)
Notice that for the struct, the template arguments are printed, but for some
reason, for the class, all you get is the template name and not its arguments.
It's listed as if it weren't a templated type, which is both inconsistent and
not particularly useful.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------