On Saturday, 5 August 2017 at 18:37:31 UTC, Johnson Jones wrote:
1. I'm pretty sure that D creates the delegate "lazily" in the sense that the first call is what captures the variable.


It actually does it at function entry, allocating the memory for the locals in the closure, so it never actually copies them.

Reply via email to