[Issue 22271] Appending to an empty array reallocate

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Sep 3 18:02:11 UTC 2021


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

Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dlang-bugzilla at thecybershad
                   |                            |ow.net

--- Comment #6 from Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> ---
It would be a breaking change.

///////////// test.d /////////////
string fun() @safe
{
    immutable char[3] arr = "foo";
    string s = arr[];
    string r;
    r ~= s;
    return r;
}
//////////////////////////////////

--


More information about the Digitalmars-d-bugs mailing list