[Issue 15195] DIP25: Member functions can leak local variables
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Wed Oct 21 15:59:53 PDT 2015
    
    
  
https://issues.dlang.org/show_bug.cgi?id=15195
timon.gehr at gmx.ch changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID
--- Comment #3 from timon.gehr at gmx.ch ---
(In reply to Walter Bright from comment #2)
> Passing the address of a local variable to a nested function causes a
> closure to be allocated. It's working as designed, though the analysis is
> unsophisticated and could potentially be improved, so marked as an
> enhancement request.
I have opened https://issues.dlang.org/show_bug.cgi?id=15232.
I'm closing this issue.
--
    
    
More information about the Digitalmars-d-bugs
mailing list