[fpc-devel] "Case statement does not handle all possible cases" Warning

Marco van de Voort fpc at pascalprogramming.org
Sun May 19 20:04:13 CEST 2019


Op 2019-05-19 om 19:24 schreef Sven Barth via fpc-devel:
> Mode delphi should be compatible. Better forbid coperators in
>
>     combination with mode delphi if need be.
>
>
> I think that we should not forbid the use of COperators if the user 
> want it just like we don't forbid the use of any modeswitch.

Possibly. But if it is Delphi compatibility or support Coperators, it 
should be Delphi compatibility for $mode delphi. That is what the mode 
is about. Anything else makes dual maintenance of code unnecessarily hard.

>
> What should be done however is to couple the << and >> operator 
> aliases to the COperators option, cause currently they are not and 
> thus are enabled always.
>
Definitely.



More information about the fpc-devel mailing list