Getting FieldNameTuple including all base-classes.
realhet
real_het at hotmail.com
Wed May 20 09:07:54 UTC 2020
On Wednesday, 20 May 2020 at 09:03:51 UTC, realhet wrote:
> On Wednesday, 20 May 2020 at 01:18:24 UTC, Paul Backus wrote:
>> On Tuesday, 19 May 2020 at 23:15:45 UTC, realhet wrote:
With this mod it also works with structs:
template AllClasses(T){
static if(is(T == class))
alias AllClasses = Reverse!(AliasSeq!(T,
BaseClassesTuple!T[0..$-1]));
else
alias AllClasses = T;
}
More information about the Digitalmars-d-learn
mailing list