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

Alexander Shishkin alexvins at mail.ru
Fri Oct 21 18:51:41 CEST 2011


18.10.2011 0:53, Andrew Pennebaker пишет:
> Does Free Pascal have anonymous functions that you can pass around, e.g.
> to a sort(compare : function, arr : array) function?
>

anonymous functions = closures = lambdas are part of functional 
paradigm. object pascal itself is not functional language.
But there is modern trend to design multiparadigm languages (usually OO 
+ functional + imperative).
Delphi followed this trend. So the question is: should freepascal follow 
this trend too?






More information about the fpc-pascal mailing list