switch-case (bug, not a proposal)

Lionello Lunesu lionello at lunesu.remove.com
Wed May 20 00:26:36 PDT 2009


Why can we do

string s;
switch(s)
{
case "blah":
  break;
default:
}


but not

byte[] a;
switch(a)
{
case [cast(byte)1,2,3]:
  break;
default:
}

?



More information about the Digitalmars-d mailing list