Anonymous procedures (Was: Re: [fpc-devel] for-in-index loop)

Marco van de Voort marcov at stack.nl
Sat Jan 26 17:51:12 CET 2013


In our previous episode, Alexander Klenin said:
> >
> > Please take a look at this:
> > http://blog.barrkel.com/2010/01/using-anonymous-methods-in-method.html
> 
> While this article confirms my understainding of them Delphi implementation,
> it does not offer a solution.
> The solution must come at the language level -- for example, make
> TMethod managed type
> and fully unify "procedure", "procedure of object" and "reference to procedure".
> This will of course incur some performance cost, but since event
> variables are in 99% of cases

I sincerely hope you are kidding here. Do not slow existing constructs.



More information about the fpc-devel mailing list