https://issues.dlang.org/show_bug.cgi?id=16302
Danila Letunovskiy <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #2 from Danila Letunovskiy <[email protected]> --- Yeah and opStaticBinary and opStaticAssign and opStaticEquals ;D struct Enum(T) { T n; opStaticAssign(string s)(){ return n = s.to!T; } opStaticEqual(string s)(){ return n == s.to!T; } } enum Color { red, green, blue } Enum!Color c = "red"; if(c == "red"){ } --
