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: Full view of limited extension? Date: Tue, 18 Oct 2016 09:22:23 +0200 Organization: A noiseless patient Spider Message-ID: References: <121792c4-3f9d-4d89-8ac5-88375ffb1110@googlegroups.com> Reply-To: nonlegitur@futureapps.de Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 18 Oct 2016 07:22:05 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="f28d4d9e002b08ad13f896787673606f"; logging-data="5504"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18vbC2RX6kFFuvr7U3pYKfsKL0MB6Y/Nuw=" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 In-Reply-To: <121792c4-3f9d-4d89-8ac5-88375ffb1110@googlegroups.com> Cancel-Lock: sha1:SAlrC5YV+LSEaZn0bKB8udlD1vc= Xref: news.eternal-september.org comp.lang.ada:32105 Date: 2016-10-18T09:22:23+02:00 List-Id: On 18.10.16 08:24, Maciej Sobczak wrote: > The problem is (GNAT 5.4.0): > > $ gcc -c test.ads > test.ads:11:04: full view of limited extension must be explicitly limited > > The "limited" keyword is already everywhere, there are no more places to put it. :-) Am I missing some dark language corners here? I think its is non-limited full views for non-tagged types only. You could work around the redundancy in the names, though... with Ada.Finalization; package Test is type Parent is limited interface; type Child is limited new Parent with private; private subtype Unmovably_Controlled is Ada.Finalization.Limited_Controlled; type Child is limited new Unmovably_Controlled and Parent with record I : Integer; end record; end Test; -- "HOTDOGS ARE NOT BOOKMARKS" Springfield Elementary teaching staff