[Issue 18312] string concatenation with -betterC fails with linker errors

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jan 31 08:59:13 UTC 2018


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

--- Comment #4 from anonymous4 <dfj1esp02 at sneakemail.com> ---
Array concatenation still implies automatic memory management of some form. Not
sure something like that can fit in betterC. You can implement something like
stringConcat("`",s,"`") that will use memory management of your choice.
Or
char[] buffer=...;
"`".chain(s).chain("`").copy(buffer);

--


More information about the Digitalmars-d-bugs mailing list