Implicit fall through not detected (Example from lex.html)
ketmar via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Mar 2 23:27:33 PST 2015
On Tue, 03 Mar 2015 06:58:14 +0000, Andre wrote:
> Hi,
>
> I am little bit confused. I am copied the switch example from lex.html
> and expected that case 6 will lead to a syntax error due to the missing
> break statement. But the example compiles without error (C:>dmd app)
implicit fallthru is not a fatal bug (but i believe it should be), it
generates only warning.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20150303/4d2dd377/attachment-0001.sig>
More information about the Digitalmars-d-learn
mailing list