Concatenation of ubyte[] to char[] works, but assignation doesn't

skilion via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Oct 4 23:52:49 PDT 2015


On Sunday, 4 October 2015 at 21:57:44 UTC, Jonathan M Davis wrote:
> When appending, b to a, the elements in b are being copied onto 
> the end of a, and presumably it works in this case, because a 
> ubyte is implicitly convertible to char. But all it's doing is 
> converting the individual elements. It's not converting the 
> array.
>
> ...
>

It make sense now, thanks.


More information about the Digitalmars-d-learn mailing list