[fpc-pascal] Free Pascal 2.4.0 released

Florian Klaempfl florian at freepascal.org
Sun Jan 3 11:10:47 CET 2010

Peter W A Wood schrieb:
>> Jonas Maebe wrote:
>>> http://edn.embarcadero.com/article/33336
>>> Note that even Delphi doesn't have them yet ("it might also turn
>>> up in Delphi in the future").
>> Looks as something related to:
>> http://en.wikipedia.org/wiki/Anonymous_function#Delphi ? If so then
>> this is already implemented in delphi.
> From my understanding, Delphi's so-called "Anonymous Functions" work
> as closures - the inner function/procedure having access to the
> variables of the outer function/procedure even if the outer function
> has completed execution. Delphi's anonymous functions can have names
> so they don't seem to be so anonymous. Anonymous functions were
> implemented in Delphi 2009.
> Apparently, they are referred to as anonymous functions as the term
> closures is used for something different in C++ Builder.

I still don't get what's the real use of such constructs? I see only
that it seems to encourage a hacky scripting language like coding style?

More information about the fpc-pascal mailing list