Eigenpoll : D wish list : switch case accept range and
switch(value)
{
case 1:
writefln();
break;
case 3,5,7:// same as "case 3: case 5: case 7:"
writefln();
break;
case 11..13:// same as "case 11: case 12: case 13:"
writefln();
break;
case 22..23,30..31:// same as "case 22: case 23: case 30: case 31:"
writefln();
break;
default:
writefln();
}
Report this item for cleanup