www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Stack-allocated fixed-runtime-length arrays

I'd like some kind of run-time-sized stack-allocated array in D, 
similar to C++14:

http://blog.smartbear.com/development/a-glimpse-into-c14/

Currently in the D bugzilla I have suggested something like 
dynarray, that is partially library-defined and partially 
supported by the compiler. But unlike the C++14 dynarray, the D 
version must guarantee a stack allocation (or generate some kind 
of run-time or compile-time error).

Bye,
bearophile
Aug 27 2013