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=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fac41,2c6139ce13be9980 X-Google-Attributes: gidfac41,public X-Google-Thread: 1108a1,2c6139ce13be9980 X-Google-Attributes: gid1108a1,public X-Google-Thread: f43e6,2c6139ce13be9980 X-Google-Attributes: gidf43e6,public X-Google-Thread: 103376,3d3f20d31be1c33a X-Google-Attributes: gid103376,public From: Ted Velkoff Subject: Re: Design by Contract Date: 1997/08/27 Message-ID: <3403B678.6CB6@erols.com>#1/1 X-Deja-AN: 268600761 References: <33E9ADE9.4709@flash.net> <34023BC4.2781E494@eiffel.com> <3402d123.0@news.uni-ulm.de> <3402DA6A.C4444E46@calfp.co.uk> <3402e51d.0@news.uni-ulm.de> <3402E8C9.3384D976@calfp.co.uk> Organization: Erol's Internet Services X-Received-On: 27 Aug 1997 05:05:57 GMT Newsgroups: comp.object,comp.software-eng,comp.lang.ada,comp.lang.eiffel Date: 1997-08-27T00:00:00+00:00 List-Id: Robert Dewar wrote: > > Nick said > > < and check > that you haven't caused problems else where you are ok. It is true that > with C++ > you have problems and have to be careful. Eiffel you don't, because > there is just one file. Modula II as you point out you don't. Give the > choice of the two different approaches, and having used both I would now > always go for spec and impl. in one file. > >> > > That's truly surprising. One of the things that virtually everone who > uses Ada agrees on is that the separation of spec and body is an invaluable aid > to system structuring. Of course there is no concern about incomaptibilities > in Ada, since everything is always checked for consistency -- I > see that in C++ this would be a prblem, but > going to a single file is a horrible way to solve the problem. Having used each of the languages cited, I vote for Eiffel's one file with extracted specification. When needing to change an interface, I've found it annoying to have to make the same change in two different places. Of course, Ada's compilable package specs are infinitely better than C++ header files. -- Ted Velkoff