[Issue 7942] Appending different string types corrupts memory
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Aug 6 07:41:02 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=7942
--- Comment #10 from yebblies <yebblies at gmail.com> ---
(In reply to Vladimir Panteleev from comment #9)
> Another option would be to fix but deprecate the functionality.
>
> > going along D's motto of "correct by default, efficient if you ask for it"
>
> I don't think that means that hidden costs are OK.
O(n) append is not a hidden cost - it's the standard. If we're ok with the
single-char case, we should be fine with the string case too.
--
More information about the Digitalmars-d-bugs
mailing list