loop over all parameters of all overloads of all members

Frustrated c1514843 at drdrb.com
Sun Feb 23 13:08:48 PST 2014


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?


More information about the Digitalmars-d-learn mailing list