[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:35:39 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=16269

--- Comment #2 from Ketmar Dark <ketmar at ketmar.no-ip.org> ---
i just thought that `.clear!true` is better. i don't know why: probably 'cause
i just love D templates and want to use 'em everywhere. ;-)

still, it's a matter of simple renaming, i don't have real API preferences
here. something like `.clear!(init:true)` may be better, but D doesn't support
that. T_T

--


More information about the Digitalmars-d-bugs mailing list