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.31.47.131 with SMTP id v125mr750931vkv.11.1460438390967; Mon, 11 Apr 2016 22:19:50 -0700 (PDT) X-Received: by 10.182.102.73 with SMTP id fm9mr5490obb.9.1460438390895; Mon, 11 Apr 2016 22:19:50 -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!7no1859182qgj.0!news-out.google.com!u9ni146igk.0!nntp.google.com!nt3no11430678igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 11 Apr 2016 22:19:50 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=184.64.89.228; posting-account=lzqe5AoAAADHhp_gregSufVhvwu22fBS NNTP-Posting-Host: 184.64.89.228 References: <56ff6352-590e-4de7-a361-bc2fec0538fb@googlegroups.com> <2db8b996-1c47-4789-97a8-075588598368@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <42af8314-355d-45d3-a5b2-565f537c5e76@googlegroups.com> Subject: Re: How to do multiple instances of a generic packages in automated way. (using ravenscar profile) From: Brad Moore Injection-Date: Tue, 12 Apr 2016 05:19:50 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:30080 Date: 2016-04-11T22:19:50-07:00 List-Id: On Monday, April 11, 2016 at 11:23:46 AM UTC-6, Daniel Norber wrote: > > What was presented is a protected type specification. You had to provide the > > body, and clearly you made an error in so doing. The error msg gives you the > > information you need to correct this error. You might want to also have a look at the Dequesterity Buffers. https://sourceforge.net/projects/dequesterity/ The buffer types are composable, meaning you can use lower level implementations to create higher level buffer types. In the Ravenscar buffers, the size of the buffer is a discriminant for a protected type, so it sounds like what you are trying to do. Basically, you only need to instantiate the generics once, but can then create as many objects of that instance as you need. I have implemented various forms of buffers, including different Ravenscar generic buffers. Some of the Ravenscar specific buffer generics include; (Ravenscar_Bounded, Ravenscar_Persistent, Ravenscar_Segmented, Ravenscar_Unbounded, Ravenscar_Bounded (Indefinite), Ravenscar_Unbounded (Indefinite), Ravenscar_Bounded_Priority, Ravenscar_Persistent_Priority, Ravenscar_Segmented_Priority, Ravenscar_Unbounded_Priority Ravenscar_Bounded_Priority (Indefinite), Ravenscar_Unbounded_Priority (Indefinite), Ravenscar_Bounded Stream Buffer, Ravenscar_Unbounded Stream Buffer, Ravenscar_Persistent Stream Buffer, Ravenscar_Segmented Stream Buffer) Brad