Lazy and GC Allocations
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
More information about the Digitalmars-d-learn