Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!uakari.primate.wisc.edu!unmvax!bbx!bbxsda!scott From: scott@bbxsda.UUCP (Scott Amspoker) Newsgroups: comp.lang.c Subject: Re: This one bit me today Message-ID: <244@bbxsda.UUCP> Date: 12 Oct 89 14:56:17 GMT References: <2432@hub.UUCP> <568@sppy00.UUCP> <750@philmtl.philips.ca> <4147@ncsuvx.ncsu.edu> <267@wsl.UUCP> Reply-To: scott@bbxsda.UUCP (Scott Amspoker) Organization: Basis International, Albuquerque, NM Lines: 18 In article <267@wsl.UUCP> john@wsl.UUCP (John Allen on wsl) writes: >We all know 'C' is not perfect, what language is, and if there is a perfect >language then use it and stop complaining about thing in the 'C' language >that a little bit of white space gets rid off. Another easy pitfall in C is forgetting to close a comment. On compilers that don't nest comments this will cause some code to be swallowed up until the next comment. You can stare at it for the longest time and not see the problem. I wrote a quick and dirty program one day to scan C programs looking for "nested" comments and reporting on them. It take but a few seconds to scan a whole directory of C source files. I highly recommend keeping such a program handy. -- Scott Amspoker Basis International, Albuquerque, NM (505) 345-5232 unmvax.cs.unm.edu!bbx!bbxsda!scott