Lazy and GC Allocations

Steven Schveighoffer schveiguy at gmail.com
Mon Feb 20 02:50:20 UTC 2023


On 2/19/23 9:15 PM, Steven Schveighoffer wrote:
> Indeed, you can't really "save" the hidden delegate somewhere, so the 
> calling function knows that the delgate can't escape.

I stand corrected, you can save it (by taking the address of it).

And it's explicitly allowed by the spec.

But.... it still doesn't allocate a closure!

See Adam's bug report: https://issues.dlang.org/show_bug.cgi?id=23627

-Steve


More information about the Digitalmars-d-learn mailing list