One more point regarding = and == (more flamage)

John Stanley stanley at phoenix.com
Mon Mar 25 05:43:46 AEST 1991


ghelmer at dsuvax.uucp (Guy Helmer) writes:

> In <1991Mar22.161333.24290 at dg-rtp.dg.com> hagins at gamecock.rtp.dg.com (Jody Ha
> >Well, I'm not Henry, but I definitely agree here!  Also, Borland seems
> >to agree here as well, since while(*foo++ = *bar++); will generate a 
>                                                     ^
> >warning message.
> 
> It would be nice to have a compiler that would flag unintended empty
> statements, too :-)

   If you can write a compiler that can tell the difference between
intended and unintended empty statements, why not write one that writes
the code, too? :-)



More information about the Comp.lang.c mailing list