[fpc-pascal] TP compatibility: procedural type

Anton Shepelev anton.txt at gmail.com
Tue Aug 29 13:22:30 CEST 2017


I wrote:

>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
>procedural type. Is it an instance of TP incompati-
>bilty or am I missing something?

I  have cross-checked in my excellent Russian manual
for Turbo Pascal 7.0, which confirmed  the  require-
ment to declare with 'far' any procedure or function
that is intended as a value of a procedural type.

-- 
Please, do not forward replies to the list to my e-mail.




More information about the fpc-pascal mailing list