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.7 required=5.0 tests=BAYES_00,INVALID_DATE, MSGID_SHORT,REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Xref: utzoo alt.cobol:121 comp.lang.ada:3530 comp.infosystems:82 Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!usc!ucsd!ucsdhub!hp-sdd!ncr-sd!ncrcae!hubcap!billwolf%hazel.cs.clemson.edu From: billwolf%hazel.cs.clemson.edu@hubcap.clemson.edu (William Thomas Wolfe, 2847 ) Newsgroups: alt.cobol,comp.lang.ada,comp.infosystems Subject: Re: What's really wrong with COBOL? Message-ID: <8471@hubcap.clemson.edu> Date: 23 Mar 90 16:43:08 GMT References: <4877@ganymede.inmos.co.uk> Sender: news@hubcap.clemson.edu Reply-To: billwolf%hazel.cs.clemson.edu@hubcap.clemson.edu List-Id: >From mph@lion.inmos.co.uk (Mike Harrison): > Yes, the Ada specifications do provide a sort of interface contract, > but they only enforce the *syntactic* (and perhaps *static* semantic) > aspects of the interface... There is however, no support for checking > the *dynamic* semantics of the interface... To completely check the semantics of the interface is probably so computationally complex as to be not realistically achievable. But practically speaking there is a way to let Ada help you here as well. Simply temporarily *remove* the modified procedure or function from the specification and recompile. Then the Ada compiler will point out *all* places at which the modified procedure or function was referenced. Now recompile the "complete" specification, and verify that all the points at which the semantically modified procedure or function was referenced are OK with respect to the semantic modification. This has the disadvantage of perhaps being overconservative -- leading you to points at which the semantic change may not actually do any harm -- but it's certainly better than manually trying to track the effects of the change, and in all probability it's the most practical solution. Bill Wolfe, wtwolfe@hubcap.clemson.edu