deducing function/delegate in template method

"Luís "Luís
Fri May 24 15:39:15 PDT 2013


On Friday, 24 May 2013 at 22:37:49 UTC, Luís Marques wrote:
>     foo.addHandlers(delegate (int x) { /* if no scope access 
> deduction fails */ });

(I meant that deduction would fail if the literal was not marked 
as a delegate)


More information about the Digitalmars-d-learn mailing list