writefln on interface array

strtr strtr at spam.com
Wed Apr 7 04:13:07 PDT 2010

Is it possible to have this output [null,"1"] in stead of Error: std.format formatArg?

interface I{}
class C:I{
int index;
char[] toString(){ return toString(index) }

I[2] two_i;
I[1] = new C();

Would be handy for debugging ;)

More information about the Digitalmars-d-learn mailing list