[fpc-pascal] New Warnings with fpc >= 3.2.0

fredvs fiens at hotmail.com
Wed Mar 11 11:44:50 CET 2020


> What must be changed, a new constant should be added at end of the array, 

Lot of work because with this the array must be initialized with tak_none.

But maybe there is now a new fpc trick to write:

--> if (kind <> tabulatorkindty(-1))

That will say "if kind is different of something that is not in the array


PS: Imho, using "-1" was a nice trick and it is sad that it cannot more be


Many thanks ;-)
Sent from: http://free-pascal-general.1045716.n5.nabble.com/

More information about the fpc-pascal mailing list