AA.clear()?

Jonathan M Davis jmdavisProg at gmx.com
Sat Feb 16 16:57:13 PST 2013


On Saturday, February 16, 2013 19:20:29 Nick Sabalausky wrote:
> Didn't there used to be an AA.clear (maybe a different name?) to clear
> an assoc array? There doesn't appear to be any mention of it here:
> 
> http://dlang.org/hash-map
> 
> Did something happen to it, or am I just remembering wrong?

No. It never existed. It was simply the clear function in object.d which was 
renamed to destroy (though an alias to clear still exists).

And all that does is set the AA variable to null.

- Jonathan M Davis


More information about the Digitalmars-d-learn mailing list