Reference parent type

Frustrated c1514843 at drdrb.com
Thu Jan 30 01:03:16 PST 2014


Suppose I have

class A
{
     mixin t!A;
}

is there a way to replace the mixin template's dependence on the
class name?

e.g.,

class A
{
     mixin t!This; // This turns in to A
}

(so, for example, renaming the above class only has to rename one
place instead of two)


More information about the Digitalmars-d-learn mailing list