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.160.9 with SMTP id xg9mr15615525pab.38.1460395550823; Mon, 11 Apr 2016 10:25:50 -0700 (PDT) X-Received: by 10.157.14.207 with SMTP id 73mr213042otj.13.1460395550747; Mon, 11 Apr 2016 10:25: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!gy3no2364605igb.0!news-out.google.com!u9ni94igk.0!nntp.google.com!nt3no11133998igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 11 Apr 2016 10:25:50 -0700 (PDT) In-Reply-To: <7ddd0311-0b41-4ab4-a20d-38ccc15c28da@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=94.126.240.2; posting-account=C8J7NQoAAAD_ybGY7--QIRi6KpLjoH1Z NNTP-Posting-Host: 94.126.240.2 References: <56ff6352-590e-4de7-a361-bc2fec0538fb@googlegroups.com> <2db8b996-1c47-4789-97a8-075588598368@googlegroups.com> <7ddd0311-0b41-4ab4-a20d-38ccc15c28da@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <8303cac6-79b9-4565-8237-9f3a04d544c0@googlegroups.com> Subject: Re: How to do multiple instances of a generic packages in automated way. (using ravenscar profile) From: Daniel Norber Injection-Date: Mon, 11 Apr 2016 17:25:50 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:30076 Date: 2016-04-11T10:25:50-07:00 List-Id: El lunes, 11 de abril de 2016, 15:04:44 (UTC+2), Shark8 escribi=F3: > On Monday, April 11, 2016 at 3:14:15 AM UTC-6, Daniel Norber wrote: > >=20 > > I was trying your approach, but maybe there is something im missing bec= ause the GNAT ADA compiler says: > > "discriminant part not allowed in protected body" >=20 > Try making a Protected Interface w/ a discriminant, then using a protecte= d type (or perhaps Task type) that implements it. Then, for populating thes= e, yo can try the Ada.Containers.Formal_Indefinite_Vector. >=20 > Hope that helps. Thank you for your help. It seems that protected type with discriminant its= not allowed using ravenscar profile restrictions. Compiler says:=20 warning: creation of protected object of type "buffer" with non-static disc= riminants will violate restriction No_Implicit_Heap_Allocation