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.182.215.131 with SMTP id oi3mr5590300obc.25.1462482091260; Thu, 05 May 2016 14:01:31 -0700 (PDT) X-Received: by 10.157.61.8 with SMTP id a8mr206479otc.7.1462482091230; Thu, 05 May 2016 14:01:31 -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!sq19no3011909igc.0!news-out.google.com!k10ni147igv.0!nntp.google.com!i5no3973295ige.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 5 May 2016 14:01:30 -0700 (PDT) In-Reply-To: <56ff6352-590e-4de7-a361-bc2fec0538fb@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2601:191:8202:8510:5985:2c17:9409:aa9c; posting-account=fdRd8woAAADTIlxCu9FgvDrUK4wPzvy3 NNTP-Posting-Host: 2601:191:8202:8510:5985:2c17:9409:aa9c References: <56ff6352-590e-4de7-a361-bc2fec0538fb@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <2da95ff3-0d06-4b2e-921f-21e6e760c532@googlegroups.com> Subject: Re: How to do multiple instances of a generic packages in automated way. (using ravenscar profile) From: rieachus@comcast.net Injection-Date: Thu, 05 May 2016 21:01:31 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:30345 Date: 2016-05-05T14:01:30-07:00 List-Id: On Tuesday, April 5, 2016 at 1:09:46 PM UTC-4, Daniel Norber wrote: > I have a generic package with a buffer functionality encapsulated using R= avenscar pragma profile. I'm not sure of what you are really driving at--you probably aren't sure yo= urself. The solution you are looking for may be an array of tasks inside a= single package. Task discriminants were added to allow such arrays to dis= cover their identity during elaboration, and do what is necessarily differe= nt from members of the array at that time. This should all happen during elaboration of the containing package. I'm = not sure if the Ravenscar pragmas will allow this. You will probably want = to have the real parameters for creating the buffers in an array, and the R= avenscar pragmas may object to that. (Yes, we know that the array is stati= c, but Ada only recognizes static scalars and strings. Putting the data in= a single huge String would be ugly.)