On 4/20/12, Joseph Rushton Wakeling <joseph.wakel...@webdrake.net> wrote:
> That said, I'm surprised that it accepts the () given that the constructor
> does
> ask for a number.

You can use:
@disable this();

But it doesn't work in all cases:

struct Foo
{
    @disable this();
    this(int i) { }
}

void main()
{
    Foo foo;  // error, OK
    auto foo = Foo();  // no error
}

I don't know if this is by design..

Reply via email to