Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!novavax!twwells!bill From: bill@twwells.uucp (T. William Wells) Newsgroups: comp.misc Subject: Re: Program Errors and developement environment Message-ID: <792@twwells.uucp> Date: 24 Mar 89 19:12:11 GMT References: <4352@enea.se> <2950@hound.UUCP> <3998@ttidca.TTI.COM> <756@twwells.uucp> <4032@ttidca.TTI.COM> <782@twwells.uucp> Reply-To: bill@twwells.UUCP (T. William Wells) Distribution: comp Organization: None, Ft. Lauderdale Lines: 28 Summary: Expires: Sender: Followup-To: Keywords: In article wjc!ho5cad.att.com (Bill Carpenter) writes: : In article <782@twwells.uucp> bill@twwells.uucp (T. William Wells) writes: : > : > [much crufty code] : > #ifdef notdef : > [much crufty code commented out] : > #endif : > [much more crufty code] : : I also use this method because I think it is safer than /**/. One : suggestion, though, is to use "#if 0 /* reason */". When I'm looking : at someone else's code or my own old code, if I see "#ifdef notdef", : I'll spend a little time trying to find out if there's any occasion : when it might be defined. I hope "#if 0" is obvious enough; it is for : me. When I use '#ifdef notdef' I always remove it before the code leaves my hands. I use `notdef' on #ifs so that I can easily find them before release. If I do need to keep #ifdefed code in the release, it gets a meaningful name on the #ifdef. --- Bill { uunet | novavax } !twwells!bill (BTW, I'm going to be looking for a new job sometime in the next few months. If you know of a good one, do send me e-mail.)