I know that different functions can have the same name but take different parameters. For instance, the truffle assert library has equalities and inequalities on lots of datatypes. But I just tried to do the same for a constructor and got a compiler complaint. I'd like to be able to say
contract Foo {
function Foo (uint onearg) {
return Foo(onearg, 2);
}
function Foo (uint onearg, uint secondarg) {
... do the real work ...
}
}