Remove all elements in an associative array

bearophile bearophileHUGS at lycos.com
Sat Jun 25 05:56:25 PDT 2011


Jonathan M Davis:

> clear invokes an object's destructor and puts it in an invalid state. You 
> definitely don't want to do that to an associative array to empty it - if 
> ever.

I am sure there's a need for a built-in function (or function in Object) to delete all items of an associative array. It's a basic common need.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list