[fpc-pascal] Callbacks as nested functions
Sven Barth
pascaldragon at googlemail.com
Mon Oct 23 11:56:46 CEST 2017
Am 23.10.2017 11:49 schrieb "Ryan Joseph" <ryan at thealchemistguild.com>:
Is there anyway to get callbacks to work as nested functions? I get crashes
when I try this and I assume it’s because the the compiler is replacing the
first parameter with another value.
What exactly are you trying? If the nested function accesses its outer
scope then it definitely won't work. For that you'd need to wait for
anonymous function support (which are planned - at least a far as I'm
concerned - to also support nested functions).
Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20171023/ff99d718/attachment.html>
More information about the fpc-pascal
mailing list