[fpc-pascal] Re: Delphi's anonymous functions in Free Pascal

Florian Klämpfl florian at freepascal.org
Thu Oct 20 22:55:14 CEST 2011


Am 20.10.2011 22:31, schrieb Juha Manninen:
> 
> They have some very important uses, like making multithreading easier.
> I copy text from Delphi help page again here because it looks so cool:

The same can be done with fpc (nested if needed) procedure variables and
it will be more readable (imo)? The example still does not take
advantage of properties of anonymous methods/closurs which cause
complexity like being ref. counted, putting locals on the heap etc.



More information about the fpc-pascal mailing list