[Issue 14820] Templates not reevaluated inside static loop unrolling

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Jul 22 10:49:23 PDT 2015


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

--- Comment #2 from simendsjo <simendsjo at gmail.com> ---
(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?

--


More information about the Digitalmars-d-bugs mailing list