Semantics of toString
Ary Borenszweig
ary at esperanto.org.ar
Thu Nov 5 05:30:39 PST 2009
Justin Johansson wrote:
> So what does "toString" mean to you?
A string useful for debugging purposes and, when possible, useful for
programming tasks.
For example in Java there's StringWriter and the toString method returns
the String being written, I think that's fine. An XML node might return
it's xml representation. But most of the time an object dosen't have a
use as a string.
More information about the Digitalmars-d
mailing list