[Issue 7942] Appending different string types corrupts memory
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Jul 30 07:50:16 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=7942
--- Comment #5 from Kenji Hara <k.hara.pg at gmail.com> ---
(In reply to yebblies from comment #3)
> I'm not so sure about this being accepts-invalid. D allows implicit string
> decoding/encoding in the single-char case, and it seems reasonable to
> support it here.
In contrast to the one character transcoding on foreach iteration, the implicit
transcoding cost on appending will be bigger when appended string is very long,
and it would be sometimes difficult to find it.
I think accepting it is not reasonable.
--
More information about the Digitalmars-d-bugs
mailing list