[Issue 14451] static-foreach uses huge stack for no reason

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Apr 16 18:01:48 PDT 2015


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

--- Comment #3 from yebblies <yebblies at gmail.com> ---
(In reply to Tomer Filiba from comment #2)
> couldn't inner-scopes be rewritten like that, only making sure the lambda is
> fully-scoped so that external variables will be heap-allocated

That is automatic outlining, and while possible, is something we're unlikely to
see any time soon in dmd.

--


More information about the Digitalmars-d-bugs mailing list