[Issue 18788] static arrays with a length specified at runtime should dynamically allocate on the stack

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Apr 21 13:11:19 UTC 2018


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

Adam D. Ruppe <destructionator at gmail.com> changed:

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

--- Comment #3 from Adam D. Ruppe <destructionator at gmail.com> ---
I'd actually just like to redefine `new` to mean the compiler is free to stack
allocate it when it can prove the lifetime does not exceed that of the function
(and the scope annotations can hint/prove/override this, as it already does for
classes[!])

--


More information about the Digitalmars-d-bugs mailing list