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/ _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel