The following code craps out on the inner for each foreach (am; __traits(derivedMembers, B)) foreach (m; [__traits(getOverloads, B, am)]) {
} So how can I loop over all the parameters of all the overloads of all the members of a class? Create some weird mapping tuple? I guess we are not going to get a static foreach any time soon?