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.129.70.135 with SMTP id t129mr15751788ywa.39.1460395615773; Mon, 11 Apr 2016 10:26:55 -0700 (PDT) X-Received: by 10.157.13.19 with SMTP id 19mr23325oti.12.1460395615666; Mon, 11 Apr 2016 10:26:55 -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!7no1700308qgj.0!news-out.google.com!u9ni94igk.0!nntp.google.com!nt3no11134790igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 11 Apr 2016 10:26:55 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=149.32.224.36; posting-account=Qh2kiQoAAADpCLlhT_KTYoGO8dU3n4I6 NNTP-Posting-Host: 149.32.224.36 References: <56ff6352-590e-4de7-a361-bc2fec0538fb@googlegroups.com> <2db8b996-1c47-4789-97a8-075588598368@googlegroups.com> <40997fc7-d8fc-4d78-86aa-23b951ef436c@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <3327ab2c-3514-44d9-beba-2300facab204@googlegroups.com> Subject: Re: How to do multiple instances of a generic packages in automated way. (using ravenscar profile) From: Anh Vo Injection-Date: Mon, 11 Apr 2016 17:26:55 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:30077 Date: 2016-04-11T10:26:55-07:00 List-Id: On Monday, April 11, 2016 at 10:21:17 AM UTC-7, Daniel Norber wrote: > > Indeed, discriminant is allowed in the protected specification only. Since you put it in the protected body, you violated the syntax rule. > > > > Anh Vo > Thanks, i tried without using it in body. > > but i think this approach fails to fullfill Ravenscar profile. > > Compiler says: > warning: creation of protected object of type "buffer" with non-static discriminants will violate restriction "No_Implicit_Heap_Allocation" Do your requirements really need access protected type implementation? If not, regular protected type does just fine.