Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!aplcen!haven!udel!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: <638@idacrd.UUCP> Date: 3 Mar 90 05:22:39 GMT References: <2935@goanna.oz.au> Organization: idacrd, princeton, nj Lines: 18 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 posting above vividly illustrates not only one possible "solution," but the problem with that solution as well. It would be better to have ways of detecting/preventing bugs which would not introduce new, possibly even harder-to-find bugs. -- David desJardins