[fpc-pascal] Passing nested procs out?

Marcos Douglas B. Santos md at delfire.net
Thu Nov 15 12:25:34 CET 2018

On Thu, Nov 15, 2018 at 8:15 AM Sven Barth via fpc-pascal
<fpc-pascal at lists.freepascal.org> wrote:
> Am Do., 15. Nov. 2018, 10:17 hat Ryan Joseph <ryan at thealchemistguild.com> geschrieben:
>> Is passing nested procs outside of the calling scope relying on undefined behavior? It doesn’t seem like this should be allowed.
> See the notes mentioned here: http://wiki.freepascal.org/FPC_New_Features_2.6.0#Support_for_nested_procedure_variables
> Don't know if it is documented as such, but if not, it should be.

If I understood correctly, this can be used in all cases of anonymous
functions, with the advantage to make the code more readable and
Am I right?

Marcos Douglas

More information about the fpc-pascal mailing list