Request for Comments: a "curry expression" Feature

Julio César Carrascal Urquijo jcarrascal at gmail.com
Fri Oct 5 09:46:15 PDT 2007


Russell Lewis wrote:
>   int delegate() foo(int i)
>   {
>     return delegate int() { return curry i; }
>   }

Yes please!

Though real closures would provide this functionality automatically this 
seams like a nice compromise that might be a lot easier to implement in 
the compiler.



More information about the Digitalmars-d mailing list