[Issue 2471] New: .stringof for nested types does not include outer symbol
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Nov 24 14:58:00 PST 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2471
Summary: .stringof for nested types does not include outer symbol
Product: D
Version: 1.036
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: dhasenan at gmail.com
This is related to #1748, but is a bit beyond the scope of that bug.
template R(T) { struct S; }
// (R!(int).S).stringof == "S";
class R { struct S; }
// (R.S).stringof == "S";
When doing code generation using CTFE and mixins, it'd be useful to get the
outer symbol included in .stringof. For debugging, this would also be helpful.
Due to static imports, ideally .stringof would give the fully qualified name.
The workaround is to use .mangleof and demangle.
--
More information about the Digitalmars-d-bugs
mailing list