From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE, MSGID_SHORT autolearn=no autolearn_force=no version=3.4.4 Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uwm.edu!rpi!crdgw1!sunroof!hammondr From: hammondr@sunroof.crd.ge.com (Richard A Hammond) Newsgroups: comp.lang.ada Subject: Re: problems/risks due to programming language, stories requested Message-ID: <5736@crdgw1.crd.ge.com> Date: 2 Mar 90 22:19:17 GMT References: <5694@crdgw1.crd.ge.com> <8211@hubcap.clemson.edu> Sender: news@crdgw1.crd.ge.com Organization: General Electric Corporate R&D Center List-Id: In article <8211@hubcap.clemson.edu> billwolf%hazel.cs.clemson.edu@hubcap.clemson.edu writes: >>From hammondr@sunroof.crd.ge.com (Richard A Hammond): >% | | In the switching software (written in C), there was a long >% | | "do . . . while" construct, which contained >% | | a "switch" statement, which contained >% | | an "if" clause, which contained a >% | | "break," which was intended for >% | | the "if" clause, but instead broke from >% | | the "switch" statement. >> Which doesn't support any conclusion other than the programmer didn't know >> the language. > Not exactly. There is a lack of orthogonality in that similar > flow-of-control constructs do not terminate in similar ways. If > one is using the if statement, termination is automatic. If one > is using the switch statement, a break is required. It is this > lack of orthogonality which leads to potential problems. ^^^^^^^^^ weasel words!! Potential cause /= actual cause. Reduced probability /= 0.0 probability Daggone it Bill, why don't you try to understand? You're quoting this out of context, the whole point of my posting was that the statement of the bug does not provide sufficient information to say that changing the language would have PREVENTED the problem. I gave 3 other examples (of C code problems) where the bug was one that would have been PREVENTED by use of Ada. Rich Hammond