Idea: Introduce zero-terminated string specifier
Vladimir Panteleev
vladimir at thecybershadow.net
Sun Sep 30 13:09:36 PDT 2012
On Sunday, 30 September 2012 at 18:58:11 UTC, Paulo Pinto wrote:
> +1
>
> We don't need to preserve C's design errors regarding strings
> and vectors.
The problem is that, unsurprisingly, most C APIs (not just libc,
but also most C libraries and OS APIs) use zero-terminated
strings. The philosophy of ignoring the existence of C strings
throughout all of D makes working with such APIs needlessly
verbose (and sometimes annoying, as D code will compile and
produce unexpected results).
More information about the Digitalmars-d
mailing list