How to mixin each element of tuple

bearophile bearophileHUGS at
Tue Dec 20 10:13:26 PST 2011

Michal Minich:

> struct Group (Items ...)
> {
>     // how to do this? ... no static foreach :(
>     static foreach (I; Items)

In D if you use foreach on a typeTuple you get a static foreach.


More information about the Digitalmars-d-learn mailing list