Why does toString() exist? It seems useless.
bearophile
bearophileHUGS at lycos.com
Mon Aug 18 12:58:41 PDT 2008
Don:
> But the way it is formatted should be a property of the output stream, I
> think, not a property of the object. Certainly this is the way C and C++
> I/O works.
You may be right, I am learning still a lot about such matters.
But how can the output stream know about the many ways to print a graph? (I don't know enough about C++ streams).
Bye,
bearophile
More information about the Digitalmars-d-learn
mailing list