Feedback Thread: DIP 1033--Implicit Conversion of Expressions to Delegates--Final Review
turkeyman at gmail.com
Mon Nov 23 08:09:15 UTC 2020
On Fri, Nov 20, 2020 at 5:35 PM Mike Parker via Digitalmars-d <
digitalmars-d at puremagic.com> wrote:
I'd just like to make sure a reference to my concern about hidden implicit
allocations that I made in the comments thread is present here.
I would strongly appeal to amend the DIP to only apply to `scope`
delegates, such that they may (should? must?) stack allocate. Non-scope
delegates require typical `() =>` syntax, which is important because it is
possible to SEE the allocation.
Potential for invisible closure allocations at every argument to every
function call in D is terrifying to me.
Otherwise, I like this DIP.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Digitalmars-d