lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

On Mon, Jul 29, 2013 at 5:18 PM, William Ahern
<> wrote:
> On Sun, Jul 28, 2013 at 02:16:57PM -0400, Mark Hamburg wrote:
>> A strict manual management strategy should be able to be absolutely
>> precise right up until the program crashes because you get into a
>> situation that the program can't handle. Or if it doesn't crash, there is
>> a lot more copying of data structures ??? think about C++ vectors getting
>> copied around just like they were integer values ??? which in its own way
>> ups memory usage even if it remains precise.

If your C++ vectors are getting copied around like that, your STL
implementation sucks. Good implementations provide copy-on-write
semantics or (as of C++11) move semantics.

/s/ Adam