On Monday, 20 January 2025 at 22:32:02 UTC, DLearner wrote:
It was because my understanding was that in certain situations the string construct did not just produce a character array - it also produced the (to me horrible) concept of adding a x'00' immediately after the last character of the array.

This is only for compile-time known strings (aka literals) for easy C interop, if you make strings at runtime they won't have null terminator as a granted.

Reply via email to