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 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "G.B." Newsgroups: comp.lang.ada Subject: Re: child class of limited_controlled not inheriting data Date: Fri, 5 Aug 2016 21:42:00 +0200 Organization: A noiseless patient Spider Message-ID: References: Reply-To: nonlegitur@futureapps.de Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 5 Aug 2016 19:42:01 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="b96887e80893c84a90c3007226ca0d1c"; logging-data="18281"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+SfFYuD95Xyvpj3HWj449nPiTZMBGVkqU=" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 In-Reply-To: Cancel-Lock: sha1:HWrzj25x9SPjQpwVFswRngSSNLI= Xref: news.eternal-september.org comp.lang.ada:31301 Date: 2016-08-05T21:42:00+02:00 List-Id: On 05.08.16 20:59, b.mcguinness747@gmail.com wrote: > indicating that the child class is not inheriting the data from the parent class. See Jeffrey Carter's response for the reason. To make a type inherit the private data of a parent type, a child package is one possibility, it establishes visibility. Yours is a sibling package. Minor nitpick: Ada has classes of types, and, in particular, a T'Class type for naming class-wide O-O types, such as the set of types all descending from T. So, "class" can be confusing if talking about Ada types.