From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=0.0 required=3.0 tests=BAYES_20,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.5-pre1 X-Received: by 2002:a37:c202:: with SMTP id i2mr869252qkm.296.1619718232018; Thu, 29 Apr 2021 10:43:52 -0700 (PDT) X-Received: by 2002:a25:6d02:: with SMTP id i2mr979125ybc.309.1619718231801; Thu, 29 Apr 2021 10:43:51 -0700 (PDT) Path: eternal-september.org!reader02.eternal-september.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 29 Apr 2021 10:43:51 -0700 (PDT) In-Reply-To: <5990d990-d8fc-489c-bb5d-7f047e14e06an@googlegroups.com> Injection-Info: google-groups.googlegroups.com; posting-host=94.31.102.170; posting-account=rmHyLAoAAADSQmMWJF0a_815Fdd96RDf NNTP-Posting-Host: 94.31.102.170 References: <78fd99c3-538d-4981-af11-c1885df36575n@googlegroups.com> <7e2ece3d-893c-43fb-bf81-6002dbd0bc3dn@googlegroups.com> <56dc220e-1341-4a9f-98cc-132c8afdc2afn@googlegroups.com> <5990d990-d8fc-489c-bb5d-7f047e14e06an@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: [Ada95] Private non-generic children of generics not allowed From: AdaMagica Injection-Date: Thu, 29 Apr 2021 17:43:52 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:61931 List-Id: So what you want is an implicit instantiation as outlined below: generic package Gen is end Gen; package body Gen is procedure Proc is separate; end Gen; private package Gen.Priv is -- will be implicitly instantiated end Gen.Priv; with Gen.Priv; separate (Gen) procedure Proc is begin ...Priv.XXX... -- anything from Priv end Proc; This is not very far from the solution given by ehh.