January 30, 2014 Reference parent type | ||||
|---|---|---|---|---|
| ||||
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)
| ||||
January 30, 2014 Re: Reference parent type | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Frustrated | On Thursday, 30 January 2014 at 09:03:17 UTC, Frustrated wrote: mixin t!(typeof(this)) | |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply