Deterministic resource freeing - delete deprecation (again)
Alexander
aldem+dmars at nk7.net
Wed Apr 27 08:08:23 PDT 2011
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
More information about the Digitalmars-d
mailing list