March 20, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3989

           Summary: stringof of nested enums doesn't give sufficient
                    information
           Product: D
           Version: 2.040
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: e.insafutdinov@gmail.com


--- Comment #0 from Eldar Insafutdinov <e.insafutdinov@gmail.com> 2010-03-20 03:13:15 PDT ---
class Foo
{
    enum Boo
    {
        X
    }
}

pragma(msg, Foo.Boo.stringof);

prints:

Boo

I can't use it for meta-programming purposes, as it does not specifies the type. At the very least it should return "Foo.Boo".

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 22, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=3989


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |andrej.mitrovich@gmail.com
         Resolution|                            |WONTFIX


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2012-10-21 20:31:36 PDT ---
Use fullyQualifiedName from Phobos:

module test;
import std.traits;

class Foo
{
    enum Boo
    {
        X
    }
}

pragma(msg, fullyQualifiedName!(Foo.Boo));  // => test.Foo.Boo

.stringof is unreliable at best, *especially* for metaprogramming.

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