On Tuesday, 21 January 2025 at 09:34:29 UTC, DLearner wrote:
Suppose we have: ``` string str1 = "A" ~ "B"; ```Does that produce: str1 == x'41' x'42' x'00' or == x'41' x'00' x'42' x'00' or == x'41' x'00' x'42' x'00' x'00'? And is str1.length == 2 or == 3 or == 4?
It produces str1 == x'41' x'42'...and then directly after str1 in the binary, there is an additional byte of storage that contains x'00'.