[ODE] RE: ALLOCA
Jon Watte
hplus-ode at mindcontrol.org
Thu Feb 26 18:39:06 MST 2004
> It really is a bad idea to use malloc/calloc/alloc/free in C++
> programs. For one thing, this bypasses any constructors someone
We're talking about a replacement for alloca(). Alloca definitely
does not use construction semantics; instead, it's used where
guaranteed clien-up is required and the overhead of using a dynamic
allocator actually might matter.
Hence, my preference for the "linear allocator" hammer for this
particular serpentine-ridged nail with a slot in the head :-)
Cheers,
/ h+
More information about the ODE
mailing list