Why does toString() exist? It seems useless.

Leandro Lucarella llucax at gmail.com
Fri Aug 22 12:10:00 PDT 2008


Don, el 18 de agosto a las 12:41 me escribiste:
> I cannot understand the rationale for a toString() member function which doesn't 
> support formatting.

I think is useful only for debugging purposes.

> C++ got around this by giving state to the iostream classes.

I think C++ formatting is heavily ill. All the manipulator stuff is
madness.

-- 
Leandro Lucarella (luca) | Blog colectivo: http://www.mazziblog.com.ar/blog/
----------------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------------
No existiría el sonido del mar si faltara en la vida oreja y caracol.
	-- Ricardo Vaporeso. Cosquín, 1908.


More information about the Digitalmars-d-learn mailing list