Hello Peter.
07 Feb 98 19:38, Peter Garner wrote to Roger Scudder:
RS>> Sounds like sloppy programming to me, but then I'm very new
RS>> to the C++. I feel that IO cleanup should be done explicitly.
PG> Actually, this is quite within the spirit of C++. In fact, doing
PG> anything else is considered sloppy programming by some people, including
PG> Bjarne Stroustrup, the original designer of C++! In fact, if you do
Hmmm... I find it fascinating the way some of the rules have been
changed. The concept of constructors and destructors does feel
natural and right to me. I seem to need to examine each thing that
I have learned about procedural programming and apply it to C++
to find out what is different.... what works and what does not.
PG> I ask that you refer to the following reference :
PG> "The C++ Programming Language", 1997, pp. 366 - 7.
PG> by Bjarne Stroustrup
PG> Those two pages give a good description as to why what you call
PG> "sloppy programming" is in fact an excellent technique to be
PG> encouraged as much as possible!
Ah... a man who gives concrete advice with documentation to back
it up. Thank you! I will record this in my notebook to review
as soon as I can access a copy of the text.
I am thinking that I should really have a copy of said text. Would
you consider it to be indispensable to the student of C++? Can you
recommend any other indispensable books I can look into?
-Roger
... 'If it ain't broke, you can probably still fix it.' - Tim Allen
--- Msged 4.20 beta 3
(1:273/404@fidonet)
---------------
* Origin: Hodge-Podge Support BBS, Upper Darby, Pennsylvania, USA
|