Christopher Wright Wrote: > You can't foreach an array at compile time [...] Yes you can, in the context of a function. string ct_func(string[] arr) { foreach(s; arr) { ... } } mixin(ct_func(__traits(allMembers, Foo)));