On Tuesday, 18 July 2017 at 03:58:49 UTC, Shachar Shemesh wrote:
If you cast a D string to const char* may or may not null terminate the string.
I do not recommend explicitly casting. This specific case is a string literal, which is guaranteed to be null terminated and will implicitly cast.
In the cases where it is not null terminated, the compiler will reject it as a type error.
