Eigenpoll : D wish list : static foreach(scope/unscope) 

invariant arr = [1,4,3,2];
static foreach(invariant int x; arr){
private string s = itoa(x);//this static foreach scope only
mixin("int x"~s~"="~s~";");
}

writefln(x1,s2,x3,x4);

Report this item for cleanup