Bug 3999 and 4261
Andrej Mitrovic
andrej.mitrovich at gmail.com
Wed Sep 1 14:45:36 PDT 2010
That's how it's described in TDPL, and yes it works.
On Wed, Sep 1, 2010 at 11:38 PM, Nick Sabalausky <a at a.a> wrote:
> "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