Am 29.08.2017 18:48 schrieb "Anton Shepelev" <anton....@gmail.com>: > I now see from other replies that the -Mtp mode > helps compile TP programs in FPC but not vice versa, > which makes me wonder why pointer arithmetics is so > limited in -Mtp that one must use Inc and Dec in- > stead of the direct '+' and '-' operators.
Because this is disabled by default in that mode. You can change that with {$PointerMath On} ( https://freepascal.org/docs-html/current/prog/progsu112.html#x120-1210001.3.29 ), like you can enable many other features in the more restricted modes, but you need to do that explicitly, as there might be code breakages due to this. Regards, Sven
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal