Eigenpoll : D wish list : Multiple opCast per class
Why not to invent some syntax to allow multiple opCast ? It would be really
convinient and usefull, moreover, it seems to be better then inventing some
more magic methods such as toString.
To do it we can use something like
int opCast(int dummy);
char opCast(char dummy);
or
void opCast(out int res);
void opCast(out char res);
or
void opCast_r(out int res);
void opCast_r(out char res);
Report this item for cleanup