www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - switch-case (bug, not a proposal)

reply "Lionello Lunesu" <lionello lunesu.remove.com> writes:
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:
}

?
May 20 2009
parent "Lionello Lunesu" <lionello lunesu.remove.com> writes:
heh: http://d.puremagic.com/issues/show_bug.cgi?id=596
May 20 2009