On Tuesday, 11 March 2014 at 02:07:19 UTC, Steven Schveighoffer wrote:
On Mon, 10 Mar 2014 19:59:07 -0400, Walter Bright <[email protected]> wrote:

On 3/10/2014 6:47 AM, Dicebot wrote:
(array literals that allocate, I will never forgive that).

It was done that way simply to get it up and running quickly. Having them not allocate is an optimization, it doesn't change the nature.

I think you forget about this:

foo(int v, int w)
{
   auto x = [v, w];
}

Which cannot pre-allocate.

The array is small and does not escape. It could be allocated on the stack as an optimization.

Reply via email to