On Friday, 5 July 2013 at 01:43:45 UTC, bearophile wrote:
There is a way to specify the type of a string, so this gives errors:

void main() {
    string s1  = "xx"d;
    string s2  = "xx"w;
    wstring s3 = "xx"d;
}

Bye,
bearophile

Also, don't forget the often forgotten explicit c suffix:
dstring s = "hello"c; //Error: cannot implicitly convert
expression ("hello"c) of type string to immutable(dchar)[]

Reply via email to