Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!ig!bionet!agate!ucbvax!bloom-beacon!bu-cs!att!homxb!ho7cad!wjc From: wjc@ho5cad.ATT.COM (Bill Carpenter) Newsgroups: comp.misc Subject: Re: Program Errors and developement environment Message-ID: Date: 15 Mar 89 13:39:03 GMT References: <4352@enea.se> <2950@hound.UUCP> <3998@ttidca.TTI.COM> <756@twwells.uucp> <4032@ttidca.TTI.COM> <782@twwells.uucp> Sender: nuucp@ho7cad.ATT.COM Reply-To: wjc!ho5cad.att.com (Bill Carpenter) Distribution: comp Organization: AT&T Bell Laboratories Lines: 17 In-reply-to: bill@twwells.uucp's message of 14 Mar 89 18:41:20 GMT 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. -- -- Bill Carpenter att!ho5cad!wjc or attmail!bill