"Andrej Mitrovic" <andrej.mitrov...@gmail.com> wrote in message news:mailman.49.1283374449.858.digitalmar...@puremagic.com... >I thought to!string(Enum) already does this? This was the example I > posted in bug report 4261: > > import std.conv : to; > import std.stdio: writeln; > void main() > { > enum Foo { Zero, One } > Foo f = Foo.One; > writeln(to!string(f)); > } > > Prints: One >
Does it really work that way now? That must have changed then. I could swear it wasn't like that before.