xxxxxxxxxx
import std;
void main()
{
enum ENUM { A, B, C }
ENUM x = ENUM.A;
enum A = 3, B = 4;
switch (x) /*with (ENUM)*/ {
case A: writeln("case A=", cast(int)A);break;
case B: writeln("case B=", cast(int)B);break;
default:writeln("whatever x=", cast(int)x);
}
}