home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!mole-end!mat
- From: mat@mole-end.matawan.nj.us
- Subject: Re: Destruction of temporaries
- Message-ID: <1992Sep1.092210.10909@mole-end.matawan.nj.us>
- Organization: :
- References: <rmartin.715004480@thor> <23583@alice.att.com> <23598@alice.att.com>
- Date: Tue, 1 Sep 1992 09:22:10 GMT
- Lines: 26
-
- In article <23598@alice.att.com>, ark@alice.att.com (Andrew Koenig) writes:
- > In article <rmartin.715267769@thor> rmartin@thor.Rational.COM (Bob Martin) writes:
-
- > > Ideed. But I think the warning is still useful.
-
- > The unfortunate reality is that I have seen a number of development
- > projects that have an inflexible rule -- no warnings allowed! That is,
- > they will not allow their people to ship any code that generates warnings.
-
- > Thus, giving a compiler warning for a construct is equivalent to
- > banning it for those projects.
-
- > Warnings had better be right almost all the time.
-
- In general, I applaud such a policy. It does assume one thing: that for
- any code that generates a warning, there is equivalent code that is safe
- and maintainable that does not generate the warning and does not require
- large-scale structural changes in the program.
-
- From the viewpoint, a warning is the compiler saying `I think you mean
- this, but please make your intentions clearer.'
- --
- (This man's opinions are his own.)
- From mole-end Mark Terribile
-
- mat@mole-end.matawan.nj.us, Somewhere in Matawan, NJ
-