[fpc-devel] Question about Syntax: I there a reason for this design?
Michael Schnell
mschnell at lumino.de
Mon Sep 22 10:54:03 CEST 2014
On 09/21/2014 06:36 PM, Boian Mitov wrote:
> I consider it a design bug that local functions can't be passed as
> anonymous methods in Delphi. There is no reason for that not to be
> done, except that they did not bother.
>
???
Local functions can use local variables of the outer function. Same are
logically undefined outside the outer function and technically stack
based. Hence a local function can't be passed anywhere.
-Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20140922/ea6c5e75/attachment.html>
More information about the fpc-devel
mailing list