here's another version of the code with reduced comments for easier reading on the website:

```
import std.stdio;

class MyClass {
        @disable this();

        this(string y = "hi") {
                writeln("hello from MyClass constructor");
        }
}

void main()
{
        // always works
        auto x = new MyClass("hi");

        // error, depending on @disable this()
        // why won't it match the ctor with default args?
        auto y = new MyClass();
}
```

Reply via email to