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

Jacob Carlborg via Digitalmars-d digitalmars-d at puremagic.com
Tue Apr 14 01:52:26 PDT 2015


On 2015-04-14 10:33, "Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= 
<ola.fosheim.grostad+dlang at gmail.com>" wrote:

> No.

"No" as in "alloca" doesn't work like that for default arguments or a 
string mixin is still needed?

> If alloca() ends up within a loop you are in a bad situation. Keep
> in mind that alloca is released on function RETURN. Not at the scope
> level. VLAs are released at scope level.

Will the string mixin by Marc prevent that problem with loops?

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list