Explicit casting of enum -- intentional restriction?
Namespace via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Oct 1 14:56:45 PDT 2016
The Code below still works, so I guess it's some problem with the
constraint of "exists".
----
import std.stdio;
enum Foo
{
A = "B"
}
void test(string a)
{
}
void main()
{
test(Foo.A);
Foo.A.test();
}
----
More information about the Digitalmars-d-learn
mailing list