[fpc-devel] Delphi anonymous methods
Graeme Geldenhuys
graeme at geldenhuys.co.uk
Mon Mar 4 15:16:55 CET 2013
On 2013-03-04 11:17, Martin wrote:
>
> I added:
> - the name "Bar"
> - Used is at reference
> - the keyword "closure"
>
> The above code would then create the exact same closure, as your code
> does. And it does not need an anonymous method.
+1
Much better solution, an in my opinion, much easier to read than
anonymous methods. It looks more Pascal-like.
Regards,
- Graeme -
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/
More information about the fpc-devel
mailing list