On 1/16/13, H. S. Teoh <[email protected]> wrote: > I'm guessing that most D users don't realize extent of the flexibility > of std.format
There's a problem:
module test;
import std.stdio;
class C1 { }
class C2 : C1
{
void toString(scope void delegate(const(char)[]) put)
{
put("Subclass");
}
}
void main()
{
C1 c = new C2();
writeln(c); // writes 'test.C2'
}
I think this might be a problem of having the Object root class
implement toString.
