comp.lang.ada
 help / color / mirror / Atom feed
From: Daniel Norber <danielnorberto@gmail.com>
Subject: Re: How to do multiple instances of a generic packages in automated way. (using ravenscar profile)
Date: Mon, 11 Apr 2016 10:21:16 -0700 (PDT)
Date: 2016-04-11T10:21:16-07:00	[thread overview]
Message-ID: <d69ef793-c556-495a-a2e8-c6bc8dee88f0@googlegroups.com> (raw)
In-Reply-To: <40997fc7-d8fc-4d78-86aa-23b951ef436c@googlegroups.com>


> 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"

  reply	other threads:[~2016-04-11 17:21 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-05 17:09 How to do multiple instances of a generic packages in automated way. (using ravenscar profile) danielnorberto
2016-04-05 17:39 ` Jeffrey R. Carter
2016-04-05 19:39   ` Simon Wright
2016-04-07 12:05 ` danielnorberto
2016-04-07 12:36   ` G.B.
2016-04-11  9:14     ` Daniel Norber
2016-04-11 13:04       ` Shark8
2016-04-11 17:25         ` Daniel Norber
2016-04-11 15:58       ` Anh Vo
2016-04-11 17:21         ` Daniel Norber [this message]
2016-04-11 17:26           ` Anh Vo
2016-04-11 16:59       ` Jeffrey R. Carter
2016-04-11 17:23         ` Daniel Norber
2016-04-11 17:27           ` Jeffrey R. Carter
2016-04-12  5:19           ` Brad Moore
2016-04-26 15:08             ` Daniel Norber
2016-05-05 21:01 ` rieachus
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox