On Sunday, 5 December 2021 at 16:32:16 UTC, rikki cattermole
wrote:
The string is not the problem.
```d
string ip_address = "192.168.1.1";
auto x = new InternetAddress(ip_address, 8008);
```
That works.
A string in D is an alias for immutable(char)[]. This is
defined in druntime (object.d).
The string is not the problem.
```d
string ip_address = "192.168.1.1";
auto x = new InternetAddress(ip_address, 8008);
```
That works.
A string in D is an alias for immutable(char)[]. This is defined in
druntime (object.d).
Immutable does cast to const implicitly, so a string argument to the
All I want:
```d
string ip_address = "192.168.1.1";
auto x = new InternetAddress( ip_string, "8008");
```
```d
source/app.d(161,16): Error: none of the overloads of `this` are
callable using argument types `(string, int)`
/usr/include/dmd/phobos/std/socket.d(1472,5):Candidates
are: `st