[fpc-pascal] Free Pascal 2.4.0 released

Peter W A Wood peterwawood at gmail.com
Sun Jan 3 10:58:35 CET 2010


> 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.

Regards

Peter


More information about the fpc-pascal mailing list