[Issue 15984] [REG2.071] Interface contracts retrieve garbage instead of parameters

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Mar 28 07:03:58 PDT 2017


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

--- Comment #13 from Martin Nowak <code at dawg.eu> ---
(In reply to anonymous4 from comment #12)
> AFAIK, normal nested function doesn't trigger closure allocation if it's
> only called and its delegate is not taken.

That's why it said "special nested function", although changing all nested
functions to use closures allocated on the stack or GC (depending on escaping)
would get rid of the tricky direct addressing in the stacks of parent
functions.

--


More information about the Digitalmars-d-bugs mailing list