| -----Original Message-----
| From: [EMAIL PROTECTED]
| [mailto:[EMAIL PROTECTED] Behalf Of Ed Brey
| Sent: Tuesday, June 03, 2003 2:49 PM
| To: [EMAIL PROTECTED]
| Subject: [boost] Re: Re: I/O library status
|
| Beyond these are the performance concerns of course;
|
| rather than the more efficient and arguably more readable:
|
| cout <<
|   "My first line" "\n"
|   "My second line";

Are you sure that this is more efficient?

cout <<
   "My first line" << endl <<
   "My second line";

has proven LESS efficient and I suspect the flush caused by encountering \n will
have the same effect.  Of course, the differences are tiny in practice.

I view the newl as much clearer.  And the concept that endl actually writes the
buffered output doesn't seem too complicated.

As a non-C programmer, "\n" looks plain nasty to me :-(

Paul

Paul A Bristow, Prizet Farmhouse, Kendal, Cumbria, LA8 8AB  UK
+44 1539 561830   Mobile +44 7714 33 02 04
Mobile mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to