digitalmars.D.learn - Reference parent type
- Frustrated (14/14) Jan 30 2014 Suppose I have
- Stanislav Blinov (2/2) Jan 30 2014 On Thursday, 30 January 2014 at 09:03:17 UTC, Frustrated wrote:
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)
Jan 30 2014
On Thursday, 30 January 2014 at 09:03:17 UTC, Frustrated wrote: mixin t!(typeof(this))
Jan 30 2014