How to pass list of strings as compile-time parameters?

Trass3r un at known.com
Tue Apr 24 10:39:42 PDT 2012


> 	bool compareByMemb(string[] ignores, T)(T obj1, T obj2) {
> 		foreach (name; __traits(getAllMembers, T)) {
> 			...
> 		}

In this particular case you could try

foo(T, U...)(T obj1, T obj2, U ignores)


More information about the Digitalmars-d-learn mailing list