http://d.puremagic.com/issues/show_bug.cgi?id=9087
--- Comment #1 from Kenji Hara <[email protected]> 2012-11-27 19:31:53 PST --- (In reply to comment #0) > Currently (DMD 2.061alpha) this code generates a warning: > > // program#1 > void main() { > foreach (i; 0 .. 10) > i++; > } > > test.d(4): Warning: variable modified in foreach body requires ref storage > class This is the *temporary* warning in progress of fixing bug 6652. Finally, the warning will be disappeared and modifying non-ref foreach key will be acceptable. This means that the warning is not for the purpose you hope. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
