[fpc-pascal] TP compatibility: procedural type

Sven Barth pascaldragon at googlemail.com
Tue Aug 29 18:59:16 CEST 2017


Am 29.08.2017 18:48 schrieb "Anton Shepelev" <anton.txt at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20170829/88fd61bd/attachment.html>


More information about the fpc-pascal mailing list