On Wed, 11 Mar 2020, fredvs via fpc-pascal wrote:

Re-hello.

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
tabulatorkindty"

?

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

Don't use tricks. Do it properly, and add a tab_None or somesuch. That should be standard practice.

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

Reply via email to