On 09/12/2016 08:56 AM, Russel Winder via Digitalmars-d-learn wrote:
Which raises the question of whether:

        x[]

and

        x.dup

have the same result.


No. x[] is a nop for dynamic arrays. Only the array struct (pointer and length) gets copied, as it always does. x.dup copies the array's elements to a new location.

Reply via email to