Re: Implicit fall through not detected (Example from lex.html)

2015-03-03 Thread bearophile via Digitalmars-d-learn
Andre: I am also not really happy with the actual behavor (w / wi switch needed) You shall always compile your D code with warnings active, unless you need them disabled for some real reason. Eventually the fall through warning will become a deprecation and then an error. It's meant to be

Re: Implicit fall through not detected (Example from lex.html)

2015-03-03 Thread Andre via Digitalmars-d-learn
On Tuesday, 3 March 2015 at 07:27:33 UTC, ketmar wrote: implicit fallthru is not a fatal bug (but i believe it should be), it generates only warning. I am also not really happy with the actual behavor (w / wi switch needed) because the documentation is clear about that it is an error:

Implicit fall through not detected (Example from lex.html)

2015-03-02 Thread Andre via Digitalmars-d-learn
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) I tried 3 different dmd version, also the newest beta. Kind regards André

Re: Implicit fall through not detected (Example from lex.html)

2015-03-02 Thread Ali Çehreli via Digitalmars-d-learn
On 03/02/2015 10:58 PM, 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) I tried 3 different dmd version, also the

Re: Implicit fall through not detected (Example from lex.html)

2015-03-02 Thread ketmar via Digitalmars-d-learn
On Tue, 03 Mar 2015 06:58:14 +, 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