Linked by Eugenia Loli-Queru on Thu 1st Dec 2005 17:24 UTC
Thread beginning with comment 68132
To view parent comment, click here.
To read all comments associated with this story, please click here.
To view parent comment, click here.
To read all comments associated with this story, please click here.





Member since:
2005-06-29
This is generally true, although a version of printf could be written that may be called safely. (I've done that before to get past such issues in code I've inherited before cleaning it up later).
I took its use to be "generally illustrative" rather than detailed recommended practice (I suspect the author wasn't considering the printf call to be part of the technique but used it as shorthand for saying "print information here").
The author should have recognized this, though; and included a warning about this practice, or simply left the print example as a comment.