kdbgstream::operator<<({,u}char)

David Faure david at mandrakesoft.com
Tue Nov 12 12:20:09 GMT 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday 12 November 2002 13:06, Bo Thorsen wrote:
> I can understand the check for 0, but I disagree about the '\n'. A flush 
> happens upon endl, not on '\n'.
> 
> std::cerr << "Something\n";
> std::cerr << "Something" << std::endl;
> 
> The C++ standard says that the second flushes the stream, the first 
> doesn't. Does the kdDebug stream not follow this?

No. Apparently many developers are too lazy to write endl, so they use \n instead :)

- -- 
David FAURE, david at mandrakesoft.com, faure at kde.org
http://people.mandrakesoft.com/~david/
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
Get the latest KOffice - http://download.kde.org/stable/koffice-1.2/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE90PH672KcVAmwbhARAqeKAJ4w6r0dc0Zh3mMKK5QUc8/5dxpCqgCfVbci
XwQr/roy4kG0urmjHgp5ucI=
=WJN/
-----END PGP SIGNATURE-----





More information about the kde-core-devel mailing list