On Saturday, 5 August 2017 at 15:33:57 UTC, Matthew Remmel wrote:
Any ideas?


You can use to! in std.conv:


import std.stdio;
import std.conv;

enum Foo
{
        A = "A",
        B = "B"
}

void main()
{
        writeln("A".to!Foo);  
}

Reply via email to