How should I write some code that would have an effect similar to what: interface P { this(ulong ndx); ulong fset(); } would have if it were a legal construct? The "constructor" needs to return an instance of the class that implements it.