Why implicit conversion of string literal to char[] does not works?

Michal Minich michal.minich at gmail.com
Tue Jul 2 02:10:31 PDT 2013


void main ()
{
     char[] str = "abc";
     // Error: cannot implicitly convert expression ("abc")
     // of type string to char[]
}

I thought there is no harm in that?


More information about the Digitalmars-d-announce mailing list