On Friday, 30 December 2022 at 22:02:41 UTC, Ali Çehreli wrote:
On 12/30/22 13:54, matheus wrote:> But yes I think it will generate a copy (mutable) based on this test:In this case it does copy but in the case of dchar[] to dchar[], there will be no copy. Similarly, there is no copy from immutable to immutable.
Very interesting I did some testing and you are right. So better to stick with .dup!
Thanks for the info, Matheus.