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.

  • dChar Error Salih Dincer via Digitalmars-d-learn
    • Re: dChar E... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
      • Re: dCh... Salih Dincer via Digitalmars-d-learn
        • Re:... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
    • Re: dChar E... novice2 via Digitalmars-d-learn
      • Re: dCh... Salih Dincer via Digitalmars-d-learn
        • Re:... matheus via Digitalmars-d-learn
          • ... Salih Dincer via Digitalmars-d-learn
            • ... matheus via Digitalmars-d-learn
              • ... Ali Çehreli via Digitalmars-d-learn
                • ... matheus via Digitalmars-d-learn
                • ... Salih Dincer via Digitalmars-d-learn
                • ... Salih Dincer via Digitalmars-d-learn
                • ... Ali Çehreli via Digitalmars-d-learn
                • ... Salih Dincer via Digitalmars-d-learn

Reply via email to