On Tuesday, 10 February 2026 at 12:04:05 UTC, Brother Bill wrote:
When adding an explicit constructor such as ```this(string fileName)```, this is "supposed" to remove the "default" constructor. Then the developer needs to add back the default constructor.[...]
```d
import std;
struct foo{
int i,j;
this(int a, int b){
j=a;
i=b;
}
}
unittest{
auto bar=foo(1,2);
bar=foo(3);
}
```
Error: constructor `onlineapp.foo.this(int a, int b)` is not callable using argument types `(int)`
working as expected
