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

Santiago A. svaa at ciberpiula.net
Fri Mar 13 17:31:38 CET 2020


El 13/03/2020 a las 15:49, fredvs via fpc-pascal escribió:
> Hello Santiago.
>
> What do you think?
IMHO

---> kind := tabulatorkindty(-1);

makes no sense.

Why should you initialize a variable on purpose to an out-of-range value?
If you need a sentinel value, or a non valid value, create one, like NIL 
for pointers or NaN for numbers or Nul in variants

kind := tak_none

Yeah. That is the way.

-- 
Saludos

Santiago A.



More information about the fpc-pascal mailing list