[fpc-devel] Delphi anonymous methods

Alexander Klenin klenin at gmail.com
Sun Mar 3 15:09:43 CET 2013


On Sun, Mar 3, 2013 at 11:21 PM, Sven Barth <pascaldragon at googlemail.com> wrote:

>> This will also help to split implementation.
>> 1. Implement Sven's proposal. Anonymous functions which can capture
>> local variables only by value.
>> 2. Create Delphi-compatible capturing by reference.
>> 3. Discuss and implement short lambdas syntax.
>
>
> Yes, this can be seen as a plan. We also need to think about a approbiate
> syntax for 1 before this step can be done. And I'd also like to know what
> other core devs think about this. I myself would support this though.

I agree with the plan. But I am not sure about the order -- perhaps
implement Delphi-compatible variant first, since it have to be done anyway,
and there is already a spec for it.

--
Alexander S. Klenin



More information about the fpc-devel mailing list