function vs. delegate in a unittest

ag0aep6g anonymous at example.com
Sun Apr 21 21:44:43 UTC 2019


On 21.04.19 08:35, Manfred Nowak wrote:
> 2: Has someone proven, that a super type for `function' and `delegate' 
> is not existent or too difficult to implement in the compiler? Or is 
> there a good reason for requiring coders to manage different versions 
> for both types of functions?

Here's an older thread on how I think functions and delegates could be 
consolidated pretty easily:

https://forum.dlang.org/post/ofc0lj$2u4h$1@digitalmars.com

As far as I'm aware, there is nothing fundamentally blocking the 
feature. But pushing the idea further is in no way a priority for me at 
the moment.

To make it happen, someone would need to implement it in the compiler 
and convince Walter and Andrei of the change, probably via a DIP.


More information about the Digitalmars-d mailing list