That's how it's described in TDPL, and yes it works.

On Wed, Sep 1, 2010 at 11:38 PM, Nick Sabalausky <a...@a.a> wrote:
> "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.
>
>
>

Reply via email to