On 05.09.2011 23:06, Timon Gehr wrote:

The aggregate to loop over is evaluated at compile time:

int[] getAggregate(){return [1,2,3,];}
static foreach(x;getAggregate()) {
pragma(msg,x);
}


Eh :)
For me the only compile time agregate is tuple.

We should talk about basic looping construct for compile time evolution.

Reply via email to