Bug 3999 and 4261
    Nick Sabalausky 
    a at a.a
       
    Wed Sep  1 14:38:02 PDT 2010
    
    
  
"Andrej Mitrovic" <andrej.mitrovich at gmail.com> wrote in message 
news:mailman.49.1283374449.858.digitalmars-d at 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.
    
    
More information about the Digitalmars-d
mailing list