[fpc-devel] Delphi anonymous methods
Graeme Geldenhuys
graeme at geldenhuys.co.uk
Mon Mar 4 11:24:52 CET 2013
On 2013-03-04 04:54, Boian Mitov wrote:
> In this case, not only you save declaration, you save the need to write a
> whole new class just for the task.
All my code live in classes already, so I would simply have benefited by
having a properly defined method. Then pass the method pointer to the
AExecutionTask.Add(..) call. Your example still doesn't convince me that
anonymous methods were needed. In my OOP code, I wouldn't have saved any
lines of code.
Regards,
- Graeme -
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/
More information about the fpc-devel
mailing list