home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!UB.com!igor!thor!rmartin
- From: rmartin@thor.Rational.COM (Bob Martin)
- Newsgroups: comp.lang.c++
- Subject: Re: Destruction of temporaries
- Message-ID: <rmartin.715356661@thor>
- Date: 1 Sep 92 14:11:01 GMT
- References: <rmartin.715004480@thor> <23583@alice.att.com> <rmartin.715101472@thor> <1992Aug29.184025.328@frumious.uucp> <rmartin.715267769@thor> <23598@alice.att.com>
- Sender: news@Rational.COM
- Lines: 29
-
- 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.
-
- Thus, the #pragma argument. Development environments which support a
- policy of no warnings will make use of either #pragmas to supress
- benign cases of the warning, or will fix the code so that aliases to
- temporaries are not created.
-
- It is a much larger problem, IMHO, to fail to report a condition which
- could cause a crash.
-
-
- --
- Robert Martin Training courses offered in:
- R. C. M. Consulting Object Oriented Analysis
- 2080 Cranbrook Rd. Object Oriented Design
- Green Oaks, Il 60048 (708) 918-1004 C++
-