On 06/29/2015 02:19 PM, David M. Lloyd wrote: > Out of curiosity, instead of e.g.: > > unsigned long *scratch = (unsigned long *)alloca(total_allocation); > > Could you not just use e.g.: > > unsigned long scratch[longwords * 4]; > > and avoid alloca altogether?
No. Variable-length arrays are now in Standard C but not C++. https://groups.google.com/forum/#!topic/comp.std.c++/K_4lgA1JYeg I imagine that C++ will eventually support them, but not today. Andrew.