Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!mailrus!iuvax!rutgers!njin!princeton!idacrd!desj From: desj@idacrd.UUCP (David desJardins) Newsgroups: comp.software-eng Subject: Re: problems/risks due to programming language, stories requested Message-ID: <637@idacrd.UUCP> Date: 2 Mar 90 19:55:17 GMT References: <2935@goanna.oz.au> Organization: idacrd, princeton, nj Lines: 21 From article <2935@goanna.oz.au>, by ok@goanna.oz.au (Richard O'keefe): > Another trick is to use the preprocessor to help you check your counting. > #define ten(A,B,C,D,E,F,G,H,I,J) A,B,C,D,E,F,G,H,I,H > > some_type the_table[] = { > ten( > ... > )}; > > Now if you miscount, the preprocessor will complain. The problem with this solution is well-illustrated by the posting itself. It would be better to have ways of detecting existing bugs which would not introduce new, possibly even harder-to-find bugs. -- David desJardins extra lines for inews