[Issue 22119] [Functions] Function Overloading clarity for int[] and strings
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Aug 2 12:26:27 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=22119
--- Comment #3 from anonymous4 <dfj1esp02 at sneakemail.com> ---
A more meaningful example:
---
struct Address
{
this(in char[] host, int port){}
this(ubyte[4] ip, int port){}
}
auto addr=Address([127,0,0,1],80);
---
I wanted overloads for host name and ip address, but they are ambiguous.
--
More information about the Digitalmars-d-bugs
mailing list