comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R. Carter" <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: How to do multiple instances of a generic packages in automated way. (using ravenscar profile)
Date: Mon, 11 Apr 2016 09:59:27 -0700
Date: 2016-04-11T09:59:27-07:00	[thread overview]
Message-ID: <negkv8$rfa$1@dont-email.me> (raw)
In-Reply-To: <2db8b996-1c47-4789-97a8-075588598368@googlegroups.com>

On 04/11/2016 02:14 AM, Daniel Norber wrote:
>>
>>      protected type Buffer (Size : Size_In_Characters) is
>>         procedure Put (Msg : String);
>>         entry Get (Msg : out String);
>>      private
>>         content : String (1 .. Size);
>>      end Buffer;
>
> I was trying your approach, but maybe there is something im missing because the GNAT ADA compiler says:
> "discriminant part not allowed in protected body"

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.

-- 
Jeff Carter
"It is the German who is so uncourteous to his verbs."
A Scandal in Bohemia
122


  parent reply	other threads:[~2016-04-11 16:59 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
2016-04-11 17:26           ` Anh Vo
2016-04-11 16:59       ` Jeffrey R. Carter [this message]
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