[Issue 16269] add `aa.clear!true` method to associative array to clear and initialize it
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Jul 12 06:28:06 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=16269
Steven Schveighoffer <schveiguy at yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |schveiguy at yahoo.com
--- Comment #1 from Steven Schveighoffer <schveiguy at yahoo.com> ---
Thanks. I don't love the API. aa.clear!true is not "clear" (pun not intended)
on what it is doing as opposed to aa.clear.
I like the idea though -- have a function that clears, and if it's not
allocated, do that too. Why not use your internal name: clearInit?
--
More information about the Digitalmars-d-bugs
mailing list