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,FREEMAIL_FROM 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!postnews.google.com!z14g2000cwz.googlegroups.com!not-for-mail From: danmcleran@hotmail.com Newsgroups: comp.lang.ada Subject: Re: Possible Ada deficiency? Date: 1 Jan 2005 07:46:30 -0800 Organization: http://groups.google.com Message-ID: <1104594390.142290.12210@z14g2000cwz.googlegroups.com> References: <1104516913.718856.94090@z14g2000cwz.googlegroups.com> NNTP-Posting-Host: 172.171.120.225 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1104594394 29816 127.0.0.1 (1 Jan 2005 15:46:34 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 1 Jan 2005 15:46:34 +0000 (UTC) In-Reply-To: User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: z14g2000cwz.googlegroups.com; posting-host=172.171.120.225; posting-account=LSix6gsAAACmBFWMCbh6syCaua0lawvj Xref: g2news1.google.com comp.lang.ada:7374 Date: 2005-01-01T07:46:30-08:00 List-Id: 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 my type consists of a record, which contains stuff I don't want anyone else messing with, there's no way to prevent someone from writing a child package and having full access to the internals of my type!