http://d.puremagic.com/issues/show_bug.cgi?id=8155
--- Comment #10 from Joseph Rushton Wakeling <[email protected]> 2013-06-28 13:21:31 PDT --- (In reply to comment #9) > Let me add a note. For your specific use case it's better to use enumerate(), > from Issue 5550 : > > auto arr1 = new double[10]; > foreach (i, ref x; arr1.enumerate) > x = i; > arr1.writeln; Thanks for the useful hint :-) In fact in the general case where I discovered this issue, the use case was more, foreach(i, ref x; lockstep(arrIndex, arr1)) x = i; ... where arrIndex does not _necessarily_ contain the sequence 0, 1, 2, 3, 4, ... -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
