[Issue 10814] Formatting string-based enum prints its name instead of its value
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Aug 13 03:56:21 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10814
--- Comment #2 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-08-13 03:56:19 PDT ---
(In reply to comment #1)
> Another Workaround:
> writeln("" ~ Type.button);
Well, that might even allocate. I thought slicing could work too, but the
following doesn't compile:
writeln(Type.button[]);
Error: template std.stdio.writeln(T...)(T args) cannot deduce template function
from argument types !()(Type)
--
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