inheritConstructor

Should be used to inherit constructor, since D doesn't do that

Inserts this(A...)(A args) { super(args); } in place of mixin. If you'd to supply incorrect args compilation will fail, so it's fairly safe way to solve that problem Usage:

class NewElement: Element {
    // inherits constructors of Element
    mixin inheritConstructor;
    // your constructors
    this(string thing, int notthing) { /+ ... +/ }
}
mixin template inheritConstructor () {}

Constructors

this
this(A args)
Undocumented in source.

Meta