TransitiveBaseTypeTuple doesn't seemed to print the symbols as well.
12345swordy
alexanderheistermann at gmail.com
Wed Jan 10 18:31:17 UTC 2018
I expect ["__ctor", "__dtor", "toString", "toHash", "opCmp",
"opEquals"], instead I got ["toString", "toHash", "opCmp",
"opEquals", "Monitor", "factory"]
Care anyone explain why it is?
Source is the following:
import std.stdio;
import std.traits;
interface A
{
}
class D : A
{
this()
{
}
~this()
{
}
}
void main()
{
alias TL = TransitiveBaseTypeTuple!D;
for(int x = 0; x < TL.length; x++)
{
auto b = [__traits(allMembers, TL[0])];
writeln(b);
}
}
More information about the Digitalmars-d-learn
mailing list