Delegates and values captured inside loops
Renato
renato at athaydes.com
Sun Jan 21 14:52:45 UTC 2024
On Saturday, 20 January 2024 at 16:53:12 UTC, ryuukk_ wrote:
>
> This is the workaround according to:
> https://issues.dlang.org/show_bug.cgi?id=21929#c9
Go used to have the same issue [but they fixed
it](https://go.dev/blog/loopvar-preview) so this is no longer a
problem in Go.
Perhaps D could do something about it for the same reasons the Go
blog post presented.
More information about the Digitalmars-d-learn
mailing list