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 X-Received: by 2002:a0c:a802:: with SMTP id w2mr3510096qva.80.1584527227348; Wed, 18 Mar 2020 03:27:07 -0700 (PDT) X-Received: by 2002:aca:d553:: with SMTP id m80mr2618344oig.30.1584527227074; Wed, 18 Mar 2020 03:27:07 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.uzoreto.com!feeder1.cambriumusenet.nl!feed.tweak.nl!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: Wed, 18 Mar 2020 03:27:06 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=192.107.155.10; posting-account=XfA3zgkAAABoz6fRf3Tehtnqqr7Ycml- NNTP-Posting-Host: 192.107.155.10 References: <6bcc6133-8c8b-4252-a8e6-fd64a5eec2ca@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <52d51195-fa25-4271-bc48-3f8b63812302@googlegroups.com> Subject: Re: Good/best way to enforce library-level instantiation a generic package From: Vincent Marciante Injection-Date: Wed, 18 Mar 2020 10:27:07 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader01.eternal-september.org comp.lang.ada:58216 Date: 2020-03-18T03:27:06-07:00 List-Id: On Tuesday, March 17, 2020 at 9:03:51 PM UTC-4, Randy Brukardt wrote: =20 > That would reject an instance in a library-level child package, which=20 > probably isn't what the OP wants. >=20 > Randy. Correct: I would want to instantiate into a library-level package, includin= g a child. I just want to avoid repeated execution of elaboration code of = an instance and have any such arrangement that would cause that be at least= flagged/warned at compile-time.