Appending static arrays

Nordlöw via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jul 17 13:06:57 PDT 2017


On Monday, 17 July 2017 at 18:54:31 UTC, Stefan Koch wrote:
> we have special code in the compiler to optimize a ~ b ~ c.

Interesting, can you elaborate on what you mean with "optimize".

In that case, is there a reason why

     int x[2];
     int y[2];
     int z[x.length + y.length] = x ~ y;

isn't @nogc?


More information about the Digitalmars-d-learn mailing list