On 08/16/2015 04:53 AM, FreeSlave wrote:

> The problem is that this allocates delegate, so it can't be used in
> @nogc code.

Would constructing the delegate by setting its .funcptr and .ptr properties work in this case? You can have a pool of context objects which become the context for the delegate.

  http://ddili.org/ders/d.en/lambda.html#ix_lambda..funcptr

Ali

Reply via email to