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.

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to