String implicit casts

lightoze lightoze_member at pathlink.com
Thu Mar 9 14:56:04 PST 2006


I use this two functions:

void x(char[] x) {}
void x(wchar[] x) {}

This works:

x(cast(char[])"x");
x(cast(wchar[])"x");

This do not:

x("x");

I have found nothing about it in manual, can anyone tell me if it is normal or
not?





More information about the Digitalmars-d mailing list