Implicit case fallthrough warns only when a statement is in place

bearophile bearophileHUGS at lycos.com
Mon Nov 7 17:53:58 PST 2011


Andrej Mitrovic:

> I did have a bug pop up because I was relying on this new fallthrough
> warning system, but it failed to warn me because I didn't have a
> statement in one of my cases (I forgot to put a break).

-.- This is the consequence of special cases piled on special cases, in the D design.
(I agree with Jonathan here).

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list