DIP 1011--extern(delegate)--Preliminary Review Round 1

Nicholas Wilson via Digitalmars-d digitalmars-d at puremagic.com
Mon Jul 24 04:16:00 PDT 2017


On Monday, 17 July 2017 at 15:16:45 UTC, Jonathan Marler wrote:
> On Sunday, 16 July 2017 at 11:45:09 UTC, Nicholas Wilson wrote:
>> [...]
>
> I don't see any relation.  Looks like the lambda capture lowers 
> to defining a temporary struct and assigning the captured 
> values to fields in that struct, then the lambda is defined as 
> a member function of that struct.  That member function already 
> uses the delegate ABI where the context is a reference to the 
> temporary struct.
>
> [...]

Fair enough.


More information about the Digitalmars-d mailing list