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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,b8b8a54001adc4d2 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!newsfeed2.dallas1.level3.net!news.level3.com!news.illinois.net!attcg1!ip.att.net!news.binc.net!kilgallen From: Kilgallen@SpamCop.net (Larry Kilgallen) Newsgroups: comp.lang.ada Subject: Re: Possible Ada deficiency? Date: 1 Jan 2005 11:58:12 -0600 Organization: LJK Software Message-ID: References: <1104516913.718856.94090@z14g2000cwz.googlegroups.com> <1104594390.142290.12210@z14g2000cwz.googlegroups.com> NNTP-Posting-Host: eisner.encompasserve.org X-Trace: grandcanyon.binc.net 1104602189 22423 192.135.80.34 (1 Jan 2005 17:56:29 GMT) X-Complaints-To: abuse@binc.net NNTP-Posting-Date: Sat, 1 Jan 2005 17:56:29 +0000 (UTC) Xref: g2news1.google.com comp.lang.ada:7377 Date: 2005-01-01T11:58:12-06:00 List-Id: In article <1104594390.142290.12210@z14g2000cwz.googlegroups.com>, danmcleran@hotmail.com writes: > I'm not trying to promote C++'s private. I don't believe that this > would be the way to go. For one thing, I don't like the idea of friends > (or any other component) having access to private data. Although I have > used this technique myself, I feel like it is a trick one can pull out > when they didn't think ahead during the design phase. > > What I would like to have in Ada is very simple, a way to hide a data > type's internal representation from child packages. I didn't even > consider hiding procedure(s) and/or function(s), because of your point > about putting them into the package body. If you want to hide the information, why are you making it a child package ? To me the major reason for a child package is to share the information.