[Issue 15952] [REG 2.053] struct in closure is destroyed when parent function returns
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Thu Dec 29 19:27:47 UTC 2022
    
    
  
https://issues.dlang.org/show_bug.cgi?id=15952
Iain Buclaw <ibuclaw at gdcproject.org> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ibuclaw at gdcproject.org
--- Comment #4 from Iain Buclaw <ibuclaw at gdcproject.org> ---
(In reply to Steven Schveighoffer from comment #3)
> As my issue got marked as a duplicate of this, I'd say the title and
> expectation is different from mine.
> 
In both cases, there's a delegate function that references a field of the
struct being destructor'd.  Just two different ways to exit a scope to trigger
the dtor call.
--
    
    
More information about the Digitalmars-d-bugs
mailing list