[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 02:39:18 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10814
rswhite4 at googlemail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rswhite4 at googlemail.com
--- Comment #1 from rswhite4 at googlemail.com 2013-08-13 02:39:18 PDT ---
Another Workaround:
----
import std.stdio;
enum Type : string
{
button = "type::button",
}
void main()
{
writeln("" ~ Type.button);
}
----
prints:
type::button
--
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