Difference between concatenation and appendation

bearophile via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Jan 25 17:57:03 PST 2015


Laeeth Isharc:

> I think concatenation and append are used as synonyms (the same 
> meaning is meant).  a~=b or a=a~b

a=a~b always allocates a new array, while a~=b sometimes 
re-allocates in place.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list