[Issue 14820] Templates not reevaluated inside static loop unrolling

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Jul 23 12:19:23 PDT 2015


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

--- Comment #3 from Mathias LANG <pro.mathias.lang at gmail.com> ---
(In reply to simendsjo from comment #2)
> (In reply to Mathias LANG from comment #1)
> > I think that's a duplicate of https://issues.dlang.org/show_bug.cgi?id=9748
> 
> Yes, looks very similar (although on dynamic values rather than compile-time
> values). C# had a very similar issue in version 3, but it has since been
> changed to capture the current loop variable rather than the symbol that is
> reused. A breaking change, but even C#, which is very reluctant to change
> (more so than D), did it.
> 
> I notice that issue was filed over two years ago. What is the reason for not
> fixing this? Avoiding breaking change (I consider it a bug though, and so
> did the C# team)? Or just the lack of manpower?

Lack of manpower AND complexity of the issue (static foreach is an hack ATM).

--


More information about the Digitalmars-d-bugs mailing list