ketmar wrote: > On Wed, 18 Feb 2015 19:09:50 +0300, Ivan Timokhin wrote: > >> Is there any way to pass a delegate that: >> 1. avoids indirect calls (like alias); >> 2. does not allocate (like scope delegate); >> 3. captures local variables? > > i don't think that you can do it. but what is wrong with delegate > version? it doesn't really cost *that* much (especially if you'll > remember that DMD optimiser is far from... well, optimal ;-), and if you > really doing something where indirect function call matters, you'd better > use mixins anyway.
Thank you for the answer, I suspected as much.