Let's get the semantic around closure fixed.

Adam D. Ruppe destructionator at gmail.com
Fri May 21 00:59:28 UTC 2021


On Friday, 21 May 2021 at 00:31:52 UTC, TheGag96 wrote:
> Dunno if that's a pipe dream, though.

Once it is all inlined, the backend ought to be able to see what 
is going on here and elide the allocations.

@nogc might not pass that though since it is before all those 
optimizations are performed......

But like i just checked ldc -O and it indeed optimizes it out 
today.


More information about the Digitalmars-d mailing list