On 7/12/22 12:40 PM, H. S. Teoh wrote:
Because an empty string is, by default, represented by an empty slice of the null pointer.
No, it's not a null pointer. It's a pointer to a zero-character. But it is indeed an empty slice.
-Steve
Steven Schveighoffer via Digitalmars-d-learn Tue, 12 Jul 2022 10:17:41 -0700
On 7/12/22 12:40 PM, H. S. Teoh wrote:
Because an empty string is, by default, represented by an empty slice of the null pointer.
No, it's not a null pointer. It's a pointer to a zero-character. But it is indeed an empty slice.
-Steve