[Issue 9087] Value modified in foreach warning
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Nov 28 05:13:32 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=9087
--- Comment #4 from bearophile_hugs at eml.cc 2012-11-28 05:13:30 PST ---
(In reply to comment #1)
> 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.
Are you saying this will be accepted with no warnings nor errors?
void main() {
foreach (i; 0 .. 10)
i++;
}
This means extending a bug-prone behavour of D.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list