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=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.66.66.163 with SMTP id g3mr3452780pat.3.1389889957655; Thu, 16 Jan 2014 08:32:37 -0800 (PST) X-Received: by 10.50.253.195 with SMTP id ac3mr207358igd.15.1389889957421; Thu, 16 Jan 2014 08:32:37 -0800 (PST) Path: border1.nntp.dca3.giganews.com!backlog4.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!a5no11201823pbg.1!news-out.google.com!fv6ni3780qab.1!nntp.google.com!6no13382803qao.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 16 Jan 2014 08:32:36 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=66.126.103.122; posting-account=KSa2aQoAAACOxnC0usBJYX8NE3x3a1Xq NNTP-Posting-Host: 66.126.103.122 References: <839fee13-2743-49f6-a7f3-f95578386201@googlegroups.com> <1aav8alqsnqqv.5urmifgwh1mv.dlg@40tude.net> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: 'Protected' abstract subprograms From: adambeneschan@gmail.com Injection-Date: Thu, 16 Jan 2014 16:32:37 +0000 Content-Type: text/plain; charset=ISO-8859-1 X-Original-Bytes: 2406 Xref: number.nntp.dca.giganews.com comp.lang.ada:184450 Date: 2014-01-16T08:32:36-08:00 List-Id: On Thursday, January 16, 2014 2:43:36 AM UTC-8, AdaMagica wrote: > On Thursday, January 16, 2014 1:51:31 AM UTC+1, Robert A Duff wrote: > > > The only case I know of where the code in a package private part can affect the > > legality of code outside that package is this: > > > package Recursive_Types is > > type T1 is private; > > > package Nested is > > type T2 is private; > > private > > type T2 is record > > X: T1; > I think this is illegal since it would freeze T1. Wouldn't it? No, it wouldn't; nothing has yet occurred that would require that the representation of T2 be completely determined (which would also require T1 to be frozen). -- Adam