[fpc-devel] BOOL

Jasper Neumann jn at sirrida.de
Mon Dec 15 13:02:22 CET 2014


Hello folks!

Michael Schnell wrote 2014-12-15 09:28:05:
 > But the silly C programmer did "if (a == TRUE)".

I have seen this kind of nonsense way too often, even in Pascal code.
May I sincerely ask to include a hint/warning feature such as
   "Comparing booleans - bad style"
in order to notify the programmer to think twice.
This warning should be also active when using booleans as case expression.

Best regards
Jasper



More information about the fpc-devel mailing list