Doctor J schrieb:
Taken straight from http://www.digitalmars.com/d/1.0/arrays.html, this doesn't compile:void main() { string str = "abc"; char* p = str; // pointer to 1st element } "Error: cannot implicitly convert expression (str) of type char[] to char*"
Of course this doesn't work. Try char* p = str.ptr;