Stack-allocated fixed-runtime-length arrays
bearophile
bearophileHUGS at lycos.com
Tue Aug 27 10:43:23 PDT 2013
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
More information about the Digitalmars-d
mailing list