C is Brittle D is Plastic

Walter Bright newshound2 at digitalmars.com
Tue May 5 13:14:46 UTC 2026


String literals in D have always come with a terminating 0, except for the case:
```
char[3] s = "abc";
```
where there's only room for the abc.

The rationale is easy interoperability with C functions.


More information about the Digitalmars-d mailing list