On Thursday 09 September 2010 23:23:45 bearophile wrote: > Jonathan M Davis: > > Now, dynamic arrays live on the stack, even if their references don't, > > Dynamic arrays are generally on the heap. > > Bye, > bearophile
Aren't they _always_ on the heap? Their references are obviously on the stack, but as I understood it, the dynamic arrays themselves were always on the heap. Maybe scope could put them on the stack, but since scope is going away in that context, it doesn't really count. - Jonathan M Davis
