Switch case falltrhough, regression or intended behavior ?

deadalnix deadalnix at gmail.com
Sun Feb 17 08:10:58 PST 2013


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.


More information about the Digitalmars-d mailing list