Eigenpoll : D wish list : support struct&array in switch 

//array
ubyte[] id=get_byte(3);
switch(id){
case [1,2,3]:
//little endian
case [3,2,1]:
//big endian
default:
assert(0);
}

//struct
struct Point{
int x,y;
};
Point* p=new Point;
p.x=...;
p.y=...;
const Point a={2,3};
const Point b={0,0};
switch(*p){
//I want to write like this.(struct literal)
//case struct Pointer{2,3}:
case a:
case b:
default:
}

Report this item for cleanup