[Issue 3989] stringof of nested enums doesn't give sufficient information

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Oct 21 20:31:37 PDT 2012


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


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

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


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at 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: -------


More information about the Digitalmars-d-bugs mailing list