This one bit me today

Karl Heuer karl at haddock.ima.isc.com
Sat Oct 28 07:34:47 AEST 1989


In article <14811 at bfmny0.UU.NET> tneff at bfmny0.UU.NET (Tom Neff) writes:
>>The best solution would be to have /* /* */ generate a warning.
>
>Again -- this is a common usage in config.h type files.
>	/* #define BSD4_3  /*  for BSD 4.3 systems  */

The best solution is for this to be an option.  Then people who use the above
grotesqueness can disable the warning, and those of us who use a more sensible
style can enable it and have the benefit of the improved error checking.

The same applies to `if (a=b)'.

Karl W. Z. Heuer (ima!haddock!karl or karl at haddock.isc.com), The Walking Lint



More information about the Comp.lang.c mailing list