Does 'D' language supports 'C' like VLA?
via Digitalmars-d
digitalmars-d at puremagic.com
Tue Apr 14 00:27:31 PDT 2015
On Tuesday, 14 April 2015 at 07:06:24 UTC, John Colvin wrote:
> The problem is that the size isn't necessarily known.
C backends have alloca as a primitive:
http://llvm.org/docs/LangRef.html#alloca-instruction
> I guess the compiler could put in a branch, but at that point
> you'd probably want to give the programmer control and have a
> way of making it explicit.
A compiler hint is the right thing to do.
More information about the Digitalmars-d
mailing list