On Tue, Jan 29, 2013 at 12:39 AM, Paul Ishenin <paul.ishe...@gmail.com> wrote: >>> I would use anonymouse methods in pascal - I use them in javascript >>> when I need to perform something asynchronosly. >> >> >> Since you can do the same with simple named methods too, I see no need >> for creating the readibility horror that results of it. > > > It is a readability horror when for injecting a small piece of code as > anonymouse method in place where it is needed you *must* declare a new named > method (which will no be used anywhere else) few screens up or down.
Note that readability troubles of anonymous functions in Pascal are largely due to unfortunate syntax. In a parallel thread, I have offered some suggestions to make them much more readable. >> It offers nothing that objects didn't already have. > It offers understandable memory layout without VMT. Oops... so, FPC "object" type always creates VMT -- even if there is no virtual methods? -- Alexander S. Klenin _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel