Lionello Lunesu wrote: > Is this according to the spec? No. According to the specs the index cannot be "inout" for arrays. Therefore "++i" is allowed but should have no effect on the number of executions of the body of the foreach statement.