[Issue 14982] nogc inconsistency

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Aug 30 06:43:25 PDT 2015


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

ag0aep6g at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ag0aep6g at gmail.com

--- Comment #1 from ag0aep6g at gmail.com ---
I think this is a duplicate of issue 14771.

That is, bar shouldn't compile. The delegate uses a local variable and is
returned from the function, so it needs a closure. Where does that closure go
if not on the GC heap?

--


More information about the Digitalmars-d-bugs mailing list