<p>Am 29.08.2017 18:48 schrieb "Anton Shepelev" <<a href="mailto:anton.txt@gmail.com">anton.txt@gmail.com</a>>:<br>
> I now see from other replies that the -Mtp mode<br>
> helps compile TP programs in FPC but not vice versa,<br>
> which makes me wonder why pointer arithmetics is so<br>
> limited in -Mtp that one must use Inc and Dec in-<br>
> stead of the direct '+' and '-' operators.</p>
<p>Because this is disabled by default in that mode. You can change that with {$PointerMath On} ( <a href="https://freepascal.org/docs-html/current/prog/progsu112.html#x120-1210001.3.29">https://freepascal.org/docs-html/current/prog/progsu112.html#x120-1210001.3.29</a> ), 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.</p>
<p>Regards,<br>
Sven</p>