[fpc-pascal] TP compatibility: procedural type

Sven Barth pascaldragon at googlemail.com
Tue Aug 29 11:43:17 CEST 2017


Am 29.08.2017 11:10 schrieb "Anton Shepelev" <anton.txt at gmail.com>:
>
> Hello, all.
>
> According  to  Borland's  official language guide to
> Turbo Pascal 7.0,
>
>   To be used as procedural  values,  procedures  and
>   functions  must be declared with a 'far' directive
>   or compiled in the '{$F+}' state.
>
> whereas Free Pascal in -Mtp seems to accept any non-
> system  procedure or function as a value of a proce-
> dural type.  Is it an instance of TP  incompatibilty
> or am I missing something?

That would probably be only relevant on i8086. All the other targets don't
have the distinction in "near" and "far", so it's not necessary to
artificially restrict everything.

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20170829/4c064914/attachment.html>


More information about the fpc-pascal mailing list