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

Steven Schveighoffer via Digitalmars-d digitalmars-d at puremagic.com
Fri Jul 14 10:18:41 PDT 2017


On 7/14/17 1:02 PM, Dmitry Olshansky wrote:
> On Friday, 14 July 2017 at 10:43:05 UTC, Mike Parker wrote:
>> DIP 1011 is titled "extern(delegate)".
>>
>> https://github.com/dlang/DIPs/blob/master/DIPs/DIP1011.md
>>
> 
>   Contrary to  other poster I believe this is wrong way to solve a 
> problem. A far simpler approach is to allow compiler implicitly convert 
> function pointer to delegate. The dance with making an ABI wrapper can 
> be left to compiler proper.
> 
> And no annotation hell.

But I think the idea is to avoid the extra indirection and call, no? We 
already have toDelegate, which works fine if you don't care about that.

-Steve


More information about the Digitalmars-d mailing list