int foo()
{
auto x = [1, 2]; // should be allocated on the stack
return y = x[0] + x[1];
}where allocations are "small enough" and cannot escape the current scope?
And how does/should/will this interact with `@nogc`?
Per Nordlöw via Digitalmars-d Mon, 23 Oct 2017 02:11:33 -0700
int foo()
{
auto x = [1, 2]; // should be allocated on the stack
return y = x[0] + x[1];
}where allocations are "small enough" and cannot escape the current scope?
And how does/should/will this interact with `@nogc`?