Am 09.04.2014 18:59, schrieb Brian Schott:
What would this do?

struct SomeStruct
{
     this(int i = 10)
     {
         this.i = i;
     }

     this(void)
     {
         this.i = 20;
     }

     int i;
}

auto s = SomeStruct();

Thats easy to answer. What would it do if you replace the "struct" with "class" and the "void" with nothing?

Reply via email to