[Issue 9460] New: stringof on templated classes fails to list the template arguments of the type
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Feb 6 00:44:26 PST 2013
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: nobody at puremagic.com
ReportedBy: jmdavisProg at gmx.com
--- Comment #0 from Jonathan M Davis <jmdavisProg at gmx.com> 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: -------
More information about the Digitalmars-d-bugs
mailing list