On 16.07.2017 19:24, Martok wrote:
The good thing about case statements is that they tell me of every other programmer error: missing elements (if used without else)
Off-topic: how can I enable this compiler hint? When compiling: program Project1; type TEnum = (one, two); var A: TEnum; begin A := two; case A of one: begin end; end; end. I don't get any kind of warning/hint. Ondrej
_______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel