[Issue 15195] DIP25: Member functions can leak local variables
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Wed Oct 21 15:49:22 PDT 2015
    
    
  
https://issues.dlang.org/show_bug.cgi?id=15195
Walter Bright <bugzilla at digitalmars.com> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |performance
                 CC|                            |bugzilla at digitalmars.com
           Severity|normal                      |enhancement
--- Comment #2 from Walter Bright <bugzilla at digitalmars.com> ---
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.
--
    
    
More information about the Digitalmars-d-bugs
mailing list