Let's get the semantic around closure fixed.

deadalnix deadalnix at gmail.com
Wed May 19 19:05:52 UTC 2021


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.



More information about the Digitalmars-d mailing list