Benjamin Thaut:

I'm not quite sure if the .length property of a static array is always a compile time constant.

Currently it's always a compile-time constant.

But I have asked for some kind of Variable Length arrays allocated on the stack, as in C99, because using alloca() to create a 2D array on the stack is not good, it's noisy, unsafe and bug-prone. In this case their length is contained in some scoped variable or in an argument, at run-time.

They are discussing VLAs again for C++14:
http://root.cern.ch/drupal/content/c14

Bye,
bearophile

Reply via email to