On Wednesday, 19 May 2021 at 18:43:24 UTC, Steven Schveighoffer wrote: > You mean opApply? Not necessarily, if the delegate parameter is > scope (and it should be). > In all cases, if the closure doesn't escape, it can stay on heap. This is what compiler optimization do.