[Issue 3796] Result of .stringof is affected by unrelated function declarations
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Feb 8 11:25:53 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=3796
Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |andrej.mitrovich at gmail.com
--- Comment #6 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-02-08 11:25:51 PST ---
(In reply to comment #2)
> The problem could be fixed by having .stringof demangle the deco, rather than
> pretty-printing the type it came from. Unfortunately, there isn't a demangler
> in the compiler at the moment.
This is the code used right now:
/* Bugzilla 3796: this should demangle e->type->deco rather than
* pretty-printing the type.
*/
char *s = e->toChars();
But why not call e->type->toChars()? This would partially fix Issue 9460.
--
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