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:ad4:44ad:: with SMTP id n13mr4116980qvt.127.1584439909279; Tue, 17 Mar 2020 03:11:49 -0700 (PDT) X-Received: by 2002:a05:6808:491:: with SMTP id z17mr2814923oid.78.1584439908947; Tue, 17 Mar 2020 03:11:48 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.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: Tue, 17 Mar 2020 03:11:48 -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: <008fa756-2952-4c25-9058-9bba29da2ba0@googlegroups.com> Subject: Re: Good/best way to enforce library-level instantiation a generic package From: Vincent Marciante Injection-Date: Tue, 17 Mar 2020 10:11:49 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:58204 Date: 2020-03-17T03:11:48-07:00 List-Id: On Monday, March 16, 2020 at 9:21:18 PM UTC-4, Randy Brukardt wrote: > "Vincent Marciante" wrote in message > news:6bcc6133-8c8b-4252-a8e6-fd64a5eec2ca@googlegroups.com... > >I made a generic package that I want only to be instantiated at library > >level. > > I'm working on compile-time a way to enforce that desire which involves > > access > > type accessibility level checking but have not yet set it up correctly. > > Is there a better/standard way? > You can of course use any library-level access type in your program for this > purpose; I picked this one 'cause it is already sitting around. > > Hope this helps. > > Randy. Thanks for the suggestion. It was along that lines of what I was doing and it hepled.