Suppose I have a C library which implements a function for
several types. C doesn't have overloading, so their names will be
distinct.
extern(C):
double foo_double(double);
float foo_float(float);
Now I want to build a D wrapper, and merge them into a single
function with overloading:
T
On Monday, 30 June 2014 at 04:50:05 UTC, Kenji Hara wrote:
In D, you can merge arbitrary overloads by using alias
declaration.
Oh wow, you are right. That's a nice feature!
I guess I simplified too much for the sake of making the post,
the functions I would actually like to merge are