Changing the foreach key...

Karen Lanrap karen at
Mon Oct 30 10:52:01 PST 2006

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.

More information about the Digitalmars-d-learn mailing list