February 06, 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@puremagic.com
        ReportedBy: jmdavisProg@gmx.com


--- Comment #0 from Jonathan M Davis <jmdavisProg@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: -------
February 08, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9460


Andrej Mitrovic <andrej.mitrovich@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich@gmail.com


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-02-08 11:26:10 PST ---
[internal note]: This is closely related to Issue 3796, see Walter's comment here: http://d.puremagic.com/issues/show_bug.cgi?id=3796#c2

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------