[Issue 8621] Iteration variable in foreach not closed upon properly in delegate, resulting in completely corrupt large values appearing

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Oct 2 08:58:14 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=8621

--- Comment #11 from hsteoh at quickfur.ath.cx ---
Just retested it on Linux/64 (git HEAD), seems that garbage values are no
longer happening. It still shows improper/missing closure over i, though,
because the output is all 9's, meaning that it's closing on a single variable i
shared across all iterations, as opposed to unique values per iteration.

So basically the only bug left is issue #2043; the corrupted values Andrei
reported seem to have been fixed since.

--


More information about the Digitalmars-d-bugs mailing list