Thread overview
[Issue 12751] Avoid heap allocations in some cases of array concatenation
Jun 12, 2015
Kenji Hara
Dec 08, 2021
Stanislav Blinov
Dec 17, 2022
Iain Buclaw
June 02, 2014
https://issues.dlang.org/show_bug.cgi?id=12751

--- Comment #1 from bearophile_hugs@eml.cc ---
Other basic cases that can be supported:

void main() @nogc {
    int[2] a = [10, 20];
    int[3] b = [40, 50, 60];
    int[6] c = a ~ 30 ~ b;
}


Currently DMD 2.066alpha gives:

test.d(4,16): Error: cannot use operator ~ in @nogc function main
test.d(4,16): Error: cannot use operator ~ in @nogc function main

--
June 12, 2015
https://issues.dlang.org/show_bug.cgi?id=12751

Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #2 from Kenji Hara <k.hara.pg@gmail.com> ---
https://github.com/D-Programming-Language/dmd/pull/4741

--
December 08, 2021
https://issues.dlang.org/show_bug.cgi?id=12751

Stanislav Blinov <stanislav.blinov@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |stanislav.blinov@gmail.com

--- Comment #3 from Stanislav Blinov <stanislav.blinov@gmail.com> ---
I'm guessing the intent on enabling this enhancement left with Kenji Hara, and reminders about it left with bearophile?

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=12751

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P4

--
December 13
https://issues.dlang.org/show_bug.cgi?id=12751

--- Comment #4 from dlangBugzillaToGithub <robert.schadek@posteo.de> ---
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/18827

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB

--