Re: Check on correctness
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Wed, 05 Jul 2006 16:49:16 -0400
I haven't upgraded to VS2005 yet, since I haven't been in town long enough to do anything
serious except try to meet deadlines. But I approve of any compiler that refuses to
accept embedded assignments. I'm one of those people who, for serious projects, not only
sets warning level 4, but also selects the option that warning==error. A compilation with
warnings is not acceptable.
I have found lint (I use gimpel lint) to be one of the best diagnostics to run on code I'm
given. I can find 10-20 bugs just from the lint listings on any reasonably-sized
(50K-150K lines) project. I just wish C were even more hard-nosed about diagnostics, such
as forbidding the use of int where bool is required.
joe
On Wed, 5 Jul 2006 12:08:08 -0700, "Tom Serface" <tserface@xxxxxxx> wrote:
I don't know if planes have crashed, but ... I can't tell you how much IJoseph M. Newcomer [MVP]
appreciate the new level of warnings we get with 2005. I think it's worth
upgrading just for that alone. The first time I compiled some code we had
here it pointed out a number of things that most of the time worked, but
had a chance of not working... you know the kind of stuff. Needless to say
I fixed the potential problems and was happy to get the additional warnings.
Tom
"Sgt. York" <york@xxxxxxxxxxxxxx> wrote in message
news:ILCdnQjTouuemTHZnZ2dnUVZ_vqdnZ2d@xxxxxxxxxxxxxxxxxx
It's also been set right by my compiler to provide a warning. No need to
jump ship to Mister-JIT-Massive-Runtime just yet.
Ian Semmel wrote:
One of the big mistakes in the design of C++ was to make it accept C
code.
Statements like if ( a = b ) mistakenly written for if ( a == b ), have
probably caused planes to crash.
It has been set right in C#.
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- Follow-Ups:
- Re: Check on correctness
- From: Tom Serface
- Re: Check on correctness
- References:
- Check on correctness
- From: tim@xxxxxxxxxxxxxxxxxxxxxx
- Re: Check on correctness
- From: www.fruitfruit.com
- Re: Check on correctness
- From: tim@xxxxxxxxxxxxxxxxxxxxxx
- Re: Check on correctness
- From: Joseph M . Newcomer
- Re: Check on correctness
- From: Tom Serface
- Re: Check on correctness
- From: Sgt. York
- Re: Check on correctness
- From: Ian Semmel
- Re: Check on correctness
- From: Sgt. York
- Re: Check on correctness
- From: Tom Serface
- Check on correctness
- Prev by Date: Re: WinMain
- Next by Date: Re: Calling parent's function
- Previous by thread: Re: Check on correctness
- Next by thread: Re: Check on correctness
- Index(es):
Relevant Pages
|
Loading