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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: Calling a record type's methods (functions or procedure) when record is in an array Date: Wed, 22 Jan 2020 00:17:48 +0100 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <6dbb0da9-8c68-435e-945d-d0e1eefeda4c@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 21 Jan 2020 23:17:50 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="b4e9fd426fedd2ed3fa6adfee313e479"; logging-data="9343"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX197vVAlbc9owoSudzfps/YpEk2QuxAhDa4=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 Cancel-Lock: sha1:veHmdQpufzt+GF+aj76p81qJRvs= In-Reply-To: <6dbb0da9-8c68-435e-945d-d0e1eefeda4c@googlegroups.com> Content-Language: en-US Xref: reader01.eternal-september.org comp.lang.ada:57914 Date: 2020-01-22T00:17:48+01:00 List-Id: On 1/21/20 9:51 PM, Shark8 wrote: > > And now, you could change the type of the components to Point to Integer, remove the type-casts, and recompile the package Example **without having to recompile dependent packages** because they are dependent only on the visible portion of the package. Most, if not all, compilers will require you to recompile clients of the package because they use the full type declaration for allocating space for objects of the private type. -- Jeff Carter "This trial is a travesty. It's a travesty of a mockery of a sham of a mockery of a travesty of two mockeries of a sham. ... Do you realize there's not a single homosexual on that jury?" Bananas 27