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

Thanks Michael.

You'll need to disable that particular warning if you want to use such
tricks.

For the "-1" trick, it can be easy fixed with
if (kind = tabulatorkindty(tak_lef)) or (kind = tabulatorkindty(tak_right))
or (kind = tabulatorkindty(tak_centered)) or (kind =
tabulatorkindty(tak_decimal)) then

But for the other example:

--> tdataevent(de_afterapplyupdate)

Do you think it would be better to add the "extended" elements of the array
like
de_afterapplyupdate:

--> de_afterapplyupdate = ord(high(tdataevent))+6;
Directly in the original tdataevent array?

Yes.  The above is just bad programming.

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

Reply via email to