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 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,66253344eaef63db X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1994-10-03 02:31:47 PST Path: bga.com!news.sprintlink.net!howland.reston.ans.net!math.ohio-state.edu!jussieu.fr!univ-lyon1.fr!swidir.switch.ch!epflnews!dinews.epfl.ch!di.epfl.ch!Magnus.Kempe From: Magnus.Kempe@di.epfl.ch (Magnus Kempe) Newsgroups: comp.lang.ada Subject: Re: Mut. Recurs. in Ada9X w/o Breaking Encaps.? Date: 3 Oct 1994 08:07:41 GMT Organization: Ecole Polytechnique Federale de Lausanne Distribution: world Message-ID: <1994Oct3.085432@di.epfl.ch> References: <1994Sep27.165203.9192@swlvx2.msd.ray.com> <36bt0c$17oo@watnews1.watson.ibm.com> <1994Sep29.103358@di.epfl.ch> <36eebb$jn5@disunms.epfl.ch> <1994Oct2.164105.13127@swlvx2.msd.ray.com> NNTP-Posting-Host: lglsun4.epfl.ch Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Keywords: Ada 9X, C++, Eiffel, Smalltalk, object-oriented Date: 1994-10-03T08:07:41+00:00 List-Id: jgv@swl.msd.ray.com (John Volan) writes: : : [summary--packages should be broken up in three, not two, parts: : specification, body, and "abstract".] John, I suggest you stop for a while, and take the time to examine the solutions which have been offered (and read the RM 9X, clause 10.1, on program structure/separate compilation). Child units are _essentially_ a means to break packages into parts. This is something _no_ other language offers, so it is quite understandable that many will not always immediately see how useful it is (and some are likely to abuse it, as I tend to :-). The final solution whch Norm presented solves _perfectly_ the problem you submitted, with abstract types, class-wide subprograms, and a hierarchy of packages. Of course, Ada is not Smalltalk. But then, Smalltalk is not Ada either. In other words: Don't try to blindly transfer programming patterns from one language to another. -- Magnus Kempe "I know not what course others may take, but as for me, Magnus.Kempe@di.epfl.ch Give me Liberty... or give me Death!" -- Patrick Henry