Function literals and lambda functions

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sun Mar 6 11:33:45 PST 2011


On 3/6/11 11:25 AM, Simen kjaeraas wrote:
> Russel Winder <russel at russel.org.uk> wrote:
>
>>> That said, the above looks like it should work, and I'm not sure why it
>>> doesn't.
>>
>> Obviously (now :-) because the context requires a delegate not a
>> function -- it is just that the error message doesn't say that in terms
>> that don't relate to the code they relate to the realization within the
>> compiler.
>
> Yeah, but reduce should accept a function, not just a delegate.

The limitations related to frame pointers should be handled as important 
bugs. D has innovated a lot in this regard, and I believe that the full 
potential has yet to be attained.

Andrei



More information about the Digitalmars-d mailing list