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

Sven Barth pascaldragon at googlemail.com
Sun May 19 19:24:48 CEST 2019


Marco van de Voort <fpc at pascalprogramming.org> schrieb am So., 19. Mai
2019, 14:04:

>
> Op 2019-05-19 om 13:50 schreef Michael Van Canneyt:
> > Current C++ standards requires a space between the two > signs for
> > nested templates, so I think it would be fine if we were to require
> > that as well. Although I supposed that would be Delphi-incompatible...
> >
> > I think we can argue that adding a space adds to clarity.
> >
> I think that is pointless. Most coperator code is objfpc anyway.
>
> 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.

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.

Regards,
Sven

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20190519/8f123e29/attachment.html>


More information about the fpc-devel mailing list