Switch case falltrhough, regression or intended behavior ?
    Steven Schveighoffer 
    schveiguy at yahoo.com
       
    Sun Feb 17 09:14:57 PST 2013
    
    
  
On Sun, 17 Feb 2013 11:10:58 -0500, deadalnix <deadalnix at gmail.com> wrote:
> I have several instance of cases like this :
>
> switch(c) {
> 	case 'U', 'u' :
> 	case 'L', 'l' :
> 		// code . . .
> }
>
> dmd from master complains about it (Error: switch case fallthrough - use  
> 'goto case;' if intended). It used to work.
>
> Note that in that case, the fix is trivial, but I don't really see the  
> point in changing such behavior.
looks like a bug.
-Steve
    
    
More information about the Digitalmars-d
mailing list