Comment #0 by bearophile_hugs — 2013-10-18T03:07:03Z
With dmd 2.064beta2 this gives no compile-time errors:
import std.range: zip;
void main() {
foreach (const a, const b; zip(["foo"], ["bar"])) {
a = "something";
}
}
But I expect it to give a "cannot modify const expression a" error.