Lang. suggestion: auto-fallthrough and comparison shorthands

Frank Benoit keinfarbton at nospam.xyz
Sat Jul 1 04:29:30 PDT 2006


But there is a inconsistence:

switch( i ){
case 0:
	...
case 1:	// problem with implicit break
case 2:
	...
default:
	...
}

should become:
switch( i ){
case 0:
	...
case 1, 2: // this solves the problem
	...
default:
	...
}



More information about the Digitalmars-d mailing list