Reply to Max, > struct S { > uint foo = 1; > } > void main() { > S s; > foreach(i, element; s.tupleof) > s.tupleof[i] = 2; > writeln(s.foo); > } That's what I have ended up doing every time I have needed this.