On 6/17/12, Mehrdad <wfunction at hotmail.com> wrote:
> This doesn't work:
>
> foreach (i; 0 .. T.tupleof.length)
> static if (is(typeof(T.tupleof[i]) == int)) // error!
foreach (i, type; T.tupleof)
static if (is(typeof(T.tupleof[i]) == int))
But I agree, we should have a way to force a static foreach loop.