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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,8591be732d0fce98 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!feeder.news-service.com!newsfeed.freenet.de!news-lei1.dfn.de!news.uni-weimar.de!not-for-mail From: stefan-lucks@see-the.signature Newsgroups: comp.lang.ada Subject: Re: Ada OOP alternatives? Date: Thu, 24 Jul 2008 09:07:10 +0200 Organization: Bauhaus-Universitaet Weimar Message-ID: References: <462e0cf4-1d53-4918-b30b-dd3d8df90f1b@p25g2000hsf.googlegroups.com> <487d9636$0$6543$9b4e6d93@newsspool3.arcor-online.net> <6e5uq2F5g7n6U2@mid.individual.net> <1y046u74vmwh3.19jm2fcdx5xpt.dlg@40tude.net> Reply-To: stefan-lucks@see-the.signature NNTP-Posting-Host: medsec1.medien.uni-weimar.de Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: tigger.scc.uni-weimar.de 1216881297 28695 141.54.178.228 (24 Jul 2008 06:34:57 GMT) X-Complaints-To: news@tigger.scc.uni-weimar.de NNTP-Posting-Date: Thu, 24 Jul 2008 06:34:57 +0000 (UTC) X-X-Sender: lucks@medsec1.medien.uni-weimar.de In-Reply-To: Xref: g2news2.google.com comp.lang.ada:7026 Date: 2008-07-24T09:07:10+02:00 List-Id: On Wed, 23 Jul 2008, Robert A Duff wrote: > "Dmitry A. Kazakov" writes: > > > On Tue, 22 Jul 2008 13:32:20 -0700 (PDT), Adam Beneschan wrote: > > > >> This would make > >> it possible to dispense with private parts and put all of the > >> "private" stuff into package bodies. > > > > Hmm, I would consider private declarations rather as a private interface. > > If what currently goes in the private part were moved to the body, then > child package bodies would need visibility on their parent's body. Maybe, that reveals an issue with the way how Ada95 introduced child packages? In the book, "Ada in Action", the author criticises the way how Ada95 introduced child packages. The issue is that changing the private parts of a package P may break the child P.C. In most cases, one may hope that P.C just doesn't compile any more. But the risk is always that P.C compiles cleanly and silently does something wrong, due to the change of the private parts of P. Stefan -- ------ Stefan Lucks -- Bauhaus-University Weimar -- Germany ------ Stefan dot Lucks at uni minus weimar dot de ------ I love the taste of Cryptanalysis in the morning! ------