Can we fix this?
Imperatorn
johan_forsberg_86 at hotmail.com
Thu Sep 30 05:41:34 UTC 2021
On Thursday, 30 September 2021 at 00:59:26 UTC, deadalnix wrote:
> On Wednesday, 29 September 2021 at 16:47:23 UTC, Steven
> Schveighoffer wrote:
>>[...]
>
> This is where things go off rails. We don't need any new
> syntax. We need to stop adding a new gizmo every time something
> is not doing the right thing. The ed result is that the
> original thing still don't do the right thing and the gizmo
> also doesn't do the right thing because it has been though to
> solve a specific edge case.
>
> [...]
Yes. Declaring a new variable inside the loop should make the
closure capture that unique variable.
If D does not do that, it's wrong.
Fixing that should not break code.
C# fixed this and the result was eternal happiness.
More information about the Digitalmars-d
mailing list