[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
Tue May 24 07:46:24 UTC 2022


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

timon.gehr at gmx.ch changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WORKSFORME                  |---

--- Comment #41 from timon.gehr at gmx.ch ---
The correct behavior for a delegate literal that outlives a referenced variable
is to allocate a closure. This case is not an exception.

--


More information about the Digitalmars-d-bugs mailing list