DIP 1011 library alternative

Jonathan Marler johnnymarler at gmail.com
Tue May 15 22:01:30 UTC 2018


On Tuesday, 15 May 2018 at 21:25:05 UTC, Andrei Alexandrescu 
wrote:
> Hello, I was reviewing again DIP 1011 and investigated a 
> library solution. That led to
>
> https://gist.github.com/run-dlang/18845c9df3d73e45c945feaccfebfcdc
>
> It builds on the opening examples in:
>
> https://github.com/dlang/DIPs/blob/master/DIPs/DIP1011.md
>
> I'm displeased at two aspects of the implementation:
>
> * Perfect forwarding is tedious to implement: note that 
> makeDelegate hardcodes void as the return type and (int, float) 
> as parameter types. Ideally it should accept any parameters 
> that the alias passes.
>
> * Pass-by-alias and overloading interact poorly. Does anyone 
> know how to refer by alias to one specific overload?
>
>
> Thanks,
>
> Andrei

thought this was dead...good to see you're looking into it :)


More information about the Digitalmars-d mailing list