On 27.04.2011 16:48, Steven Schveighoffer wrote: > basically, dispose cleans up resources *knowing* that all its references are > still valid.
Right, but cleaning of resources doesn't mean that object will be destructed - it can be reused afterwards (connection reestablished, file reopened etc). > The deallocation of object memory is a separate thing (outside dispose or the > destructor). That's why I think that clear() is bad name choice, when it leads to destruction :) /Alexander