On Feb 22, 12:09 pm, Paul Rubin <http://[EMAIL PROTECTED]> wrote: > Nicola Musatti <[EMAIL PROTECTED]> writes: > > The real point about garbage collection is that it's about the only > > way to ensure that an object of one type is never taken to be of > > another type, e.g. by keeping around pointers to the object that > > occupied its memory before it was reallocated. I believe that this > > degree of type safety is worth having, which is why I favour the > > addition of optional GC to C++. > > But in C++, garbage collection makes no such guarantee. Think of > out-of-range subscripts.
I'm aware that the guarantee would not be perfect. For instance another source of problems could be holding pointers to local variables that went out of scope. Yet I'm convinced that even such partial guarantee is worth having. Cheers, Nicola Musatti -- http://mail.python.org/mailman/listinfo/python-list