dChar Error

Ali Çehreli acehreli at yahoo.com
Fri Dec 30 22:02:41 UTC 2022


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.

 > the address is different

Good test. :)

 > But I couldn't find if the target will be mutable, but I think it will
 > be,

The target will always be the type the programmer specifies explicitly. 
(dchar[] in this case.)

Ali



More information about the Digitalmars-d-learn mailing list