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,29d8139471e3f53e X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!m16g2000vbs.googlegroups.com!not-for-mail From: AdaMagica Newsgroups: comp.lang.ada Subject: Re: Preventing type extensions Date: Fri, 17 Sep 2010 00:04:43 -0700 (PDT) Organization: http://groups.google.com Message-ID: <61f53fe2-1592-4e35-8af5-6e0ff79c0ffe@m16g2000vbs.googlegroups.com> References: <87iq2bfenl.fsf@mid.deneb.enyo.de> <874odv9npv.fsf@ludovic-brenta.org> <87y6b7cedd.fsf@mid.deneb.enyo.de> <66a3704c-54f9-4f04-8860-aa12f516134b@t3g2000vbb.googlegroups.com> <87d3sib44t.fsf@mid.deneb.enyo.de> <134q4k2ly2pf4$.17nlv1q6q5ivo.dlg@40tude.net> <1c27b555-0832-413a-b585-e5c6b22e8ac4@t7g2000vbj.googlegroups.com> NNTP-Posting-Host: 80.156.44.178 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1284707084 8178 127.0.0.1 (17 Sep 2010 07:04:44 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 17 Sep 2010 07:04:44 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: m16g2000vbs.googlegroups.com; posting-host=80.156.44.178; posting-account=rmHyLAoAAADSQmMWJF0a_815Fdd96RDf User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.2; de; rv:1.9.0.4) Gecko/2008102920 Firefox/3.0.4,gzip(gfe) Xref: g2news1.google.com comp.lang.ada:14141 Date: 2010-09-17T00:04:43-07:00 List-Id: On 17 Sep., 02:16, Shark8 wrote: > Sure, a child-package could be introduced to extend the object, but > its specification cannot rely on anything not publicly visible in its > parent's specification... meaning that the public portion of the > object cannot expose that it is a tagged record. Right? package X is type Final is private; private type Final is tagged null record; end X; package X.X is type Extended_Final is tagged private; private type Extended_Final is new Standard.X.Final with null record; end X.X;