switch()

Steven Schveighoffer schveiguy at yahoo.com
Thu Feb 20 07:20:32 PST 2014


On Thu, 20 Feb 2014 10:08:48 -0500, bearophile <bearophileHUGS at lycos.com>  
wrote:

> Steven Schveighoffer:
>
>> What I really would be curious about is if in most D code, you see a  
>> lot more default: break; than default: assert(0);
>
> I have written tons of D2 code in the last years, and such "default:  
> assert(0);" is quite uncommon in my code. Probably less than 8-10 usages  
> in the whole code base.

But what about default: break;?

-Steve


More information about the Digitalmars-d mailing list