(char* str) is not callable using argument types (string)
Adam D. Ruppe via Digitalmars-d
digitalmars-d at puremagic.com
Mon Jul 17 21:09:08 PDT 2017
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.
More information about the Digitalmars-d
mailing list