[Issue 2043] Closure outer variables in nested blocks are not allocated/instantiated correctly: should have multiple instances but only have one.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Apr 5 20:22:41 UTC 2018


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

--- Comment #32 from Walter Bright <bugzilla at digitalmars.com> ---
> Other programming languages, even those that always capture by reference, do not have this problem.

So, for a variable declared in a loop, where do they allocate storage for it?

--


More information about the Digitalmars-d-bugs mailing list