[snip]
- Add Variable Length Arrays to D, they are much safer than alloca() and avoid some dynamic array heap allocations, reducing pressure on the GC: http://d.puremagic.com/issues/show_bug.cgi?id=5348
As stated in this proposal they are quite useless, e.g. they are easily implemented via mixin with alloca. Plus, what's the benefit in throwing exception on alloca failure, how you suppose the user to handle this stackoverflow exception? I would have expected a better design to provide an optional parameter to fallback to GC or something ( like malloc(...) + scope(exit) free(...); ) and that's indicates a library solution, of course.
-- Dmitry Olshansky