overloading operators for I/O
Michiel
nomail at please.com
Thu Feb 15 02:29:36 PST 2007
Don Clugston wrote:
> I agree. There's another problem -- it really doesn't scale well. With
> printf, you can do "%3.5f" to print a floating point number with a given
> precision. With <<, that same operation is really horrible.
But it has the added advantage that there is no need for run-time
parsing of that string. C++ parses all << stuff at compile time.
--
Michiel
More information about the Digitalmars-d
mailing list