[Issue 1118] weird switch statement behaviour

Manuel König ManuelK89 at gmx.net
Mon Apr 9 16:24:04 PDT 2007


> What about cases like this:
> 
> switch(i)
> {
>  while(i)
>  {
>   foo();
>   case 0: bar();
>   case 1: baz();
>   case 3: i--;
>  }
> }
> 
> 

Nice idea, never had to use it that way. Think this issue should be 
tagged as INVALID...

But looking at the examples given before, it would be nice if the 
compiler would give at least a warning about missing switch labels.


More information about the Digitalmars-d-bugs mailing list