On 12/20/11 7:41 AM, deadalnix wrote: >> D's pass-down lambdas do not need memory allocation. As far as I >> remember none of std.algorithm's use of lambda allocates memory. >> >> Andrei > > Is the compiler able to ensure that and do not allocate on the heap ? Yes, to the best of my knowledge it's pretty much cut and dried. Andrei