Does 'D' language supports 'C' like VLA?

deadalnix via Digitalmars-d digitalmars-d at puremagic.com
Mon Apr 13 12:45:36 PDT 2015


On Monday, 13 April 2015 at 17:04:51 UTC, John Colvin wrote:
> Eww.
>
> auto arr = new int[3];
>
> Also, I think he's referring to something slightly different.

IMO, that shouldn't be too difficult to promote that on stack if 
the reference do not escape in most cases.


More information about the Digitalmars-d mailing list