Deterministic resource freeing - delete deprecation (again)

Alexander aldem+dmars at nk7.net
Wed Apr 27 07:12:42 PDT 2011


On 27.04.2011 15:46, KennyTM~ wrote:

> Because Andrei chose to call it clear() :)

  Well, this is bad choice, IMHO... I would expect that this will zeroize all data (for arrays/structs at least), but for objects...

> ...because the function "clears the state of an object.".

  ...which is (from definition) doesn't imply destruction. Oh-oh...

/Alexander


More information about the Digitalmars-d mailing list