Discussion Thread: DIP 1033--Implicit Conversion of Expressions to Delegates--Final Review

Sebastiaan Koppe mail at skoppe.eu
Fri Nov 20 09:19:53 UTC 2020


On Friday, 20 November 2020 at 08:06:07 UTC, Manu wrote:
> So, the thing that makes me nervous about this DIP, is that it 
> may
> substantially proliferate allocated closures.
> I would want to have high confidence that people exclusively 
> use `scope`
> delegates, such that the closure can (will?/must?) be stack 
> allocated.

I have similar concerns. At least `lazy` doesn't cause an 
delegate allocation, even on -O0; be a shame to give that up.


More information about the Digitalmars-d mailing list