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

Daniel Murphy via Digitalmars-d digitalmars-d at puremagic.com
Wed Apr 15 04:40:42 PDT 2015


"Jacob Carlborg"  wrote in message news:mglc1v$1d01$1 at digitalmars.com...

> > DMD does not inline functions that have any calls to alloca.
>
> What about this [1], is that something different?
>
> [1] https://github.com/D-Programming-Language/dmd/pull/3961

Yes, that's because the inliner is used to copy the default argument 
expression to each call sight.  DMD used to inline functions that called 
alloca, leading to stack overflows when the call was inside a loop, and when 
I fixed that it made the default arg 'inlining' of alloca calls regress. 



More information about the Digitalmars-d mailing list