On 5/18/2019 3:42 PM, J. Gareth Moreton wrote:

Lazy... you've got a bloody cheek.  Well I guess there's no point in me contributing anything more if that's how you honestly view me.  I wasn't aware of the ISO that dictated that a case block shouldn't just fall through until today, and C/C++ and Basic never threw similar errors or warnings, so I didn't know this was a thing.

Wow, a bit jumpy, aren't we?

As we are talking here about a Pascal compiler, it doesn't matter what C/C++ or BASIC do. And even in other programming languages, properly acting upon unexpected conditions is good programming practice. And commonly people programming in Pascal are ones that try to adhere to good programming practices, not just ignore them out of whatever convenience they might perceive.

A warning from the compiler is hence an appropriate response, telling the programmer to check the source and make a decision, even if it is adding an empty else clause to the offending case statement. Everything else is just "lazy programming", like it or not...

Ralf



---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to