Eigenpoll : D wish list : conv() and opConv 

This is like boost's lexical_cast.
Phobos can replace toString to opConv.
*Example
wchar[] test1=conv(wchar[])"test";
char* test2=conv(char*)"test";//shuld be "test\0"
ubyte test3=2;
char[] test4=conv(char[])test3;//shuld be "2"

class Test{
//toString
void opConv(out char[] re){
re="test";
return;
}
}
char[] test5=conv(char[])(new Test);

Report this item for cleanup