How about a "static foreach"?

bearophile bearophileHUGS at lycos.com
Sat Jun 16 18:43:23 PDT 2012


Mehrdad:

> Why not just let us write
>
> 	static foreach (i; 0 .. T.tupleof.length)
> 		static if (is(typeof(T.tupleof[i]) == int))
> 			...
>
> so that the code is a lot more succinct and easy to write?

Vote or comment, please:
http://d.puremagic.com/issues/show_bug.cgi?id=4085

Bye,
bearophile


More information about the Digitalmars-d mailing list