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.141.74 with SMTP id rm10mr17942233pab.16.1459876184225; Tue, 05 Apr 2016 10:09:44 -0700 (PDT) X-Received: by 10.157.11.167 with SMTP id 36mr406653oth.17.1459876184143; Tue, 05 Apr 2016 10:09:44 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!nt3no8036888igb.0!news-out.google.com!ha2ni142igb.0!nntp.google.com!nt3no8036887igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 5 Apr 2016 10:09:43 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=194.220.172.163; posting-account=C8J7NQoAAAD_ybGY7--QIRi6KpLjoH1Z NNTP-Posting-Host: 194.220.172.163 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <56ff6352-590e-4de7-a361-bc2fec0538fb@googlegroups.com> Subject: How to do multiple instances of a generic packages in automated way. (using ravenscar profile) From: danielnorberto@gmail.com Injection-Date: Tue, 05 Apr 2016 17:09:44 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:29999 Date: 2016-04-05T10:09:43-07:00 List-Id: I have a generic package with a buffer functionality encapsulated using Ravenscar pragma profile. This buffer has also a protected procedures an entries for multitasking. I need to instantiate several of this packages. In this moment the code is working in this way: package buffer1 is new buffer(configuration_1); package buffer2 is new buffer(configuration_2); ..... package bufferN is new buffer(configuration_N); The problem is that i will need a quantity up to 500 or 1000 independent buffers packages, so i'm trying to think in other way to instantiate this generics packages than fill 500 or 1000 lines of instances. To make this thing more difficult, Ravenscar pragma profile obligates to define everything is posible in compilation time. I was looking to do something like a "constrained generics package array" but i don't know how this language can manage this situation. Does anybody knows a better approach to his problem? Thanks in advance