I have a standard char pointer which im trying to cast to a string.
// string to char*
char *x = cast(char*)("Hello World\0");
// char* to string?
string x = cast(string)x;
string x = cast(immutable(char)[])x;
Error!
Any ideas how to cast a char* to a string in D?
Use
std.conv.toto convert fromchar*tostring. Usestd.string.toStringZto go the other way.