xxxxxxxxxx
import std;
struct Foo
{
void toString(scope void delegate(const(char)[]) sink,
FormatSpec!char fmt) const
{
sink(typeof(this).stringof);
sink("(");
sink(")");
}
string toString() const
{
return "non output range version";
}
}
void main()
{
Foo foo;
foo.writeln;
}