Switch and break

Jonathan M Davis jmdavisProg at gmx.com
Thu Jan 19 15:46:31 PST 2012


On Thursday, January 19, 2012 22:10:19 Peter Alexander wrote:
> Consistency with C and C++ mainly.
> 
> Some people find it convenient, but it is unarguably a frequent source
> of bugs that we could do without.

I'd be _very_ annoying if you couldn't do fall-through with switch-statements. 
That's a major feature and important for case statements IMHO. However, making 
fallthrough be explicit as D now does (with -w anyway) is definitely an 
improvement.

- Jonathan M Davis


More information about the Digitalmars-d-learn mailing list