dChar Error

novice2 sorry at noem.ail
Fri Dec 30 09:29:16 UTC 2022


On Friday, 30 December 2022 at 04:43:48 UTC, Salih Dincer wrote:
>   ...
>   // example one:
>   char[] str1 = "cur:€_".dup;
>   ...
>   // example two:
>   dchar[] str2 = cast(dchar[])"cur:€_"d;
>   ...
> SDB at 79

why you use .dup it example one, but not use in example two?

dchar[] str2 = cast(dchar[])"cur:€_"d.dup;


More information about the Digitalmars-d-learn mailing list