dChar Error

matheus matheus at gmail.com
Fri Dec 30 22:28:11 UTC 2022


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.



More information about the Digitalmars-d-learn mailing list