comp.lang.ada
 help / color / mirror / Atom feed
From: rieachus@comcast.net
Subject: Re: How to do multiple instances of a generic packages in automated way. (using ravenscar profile)
Date: Thu, 5 May 2016 14:01:30 -0700 (PDT)
Date: 2016-05-05T14:01:30-07:00	[thread overview]
Message-ID: <2da95ff3-0d06-4b2e-921f-21e6e760c532@googlegroups.com> (raw)
In-Reply-To: <56ff6352-590e-4de7-a361-bc2fec0538fb@googlegroups.com>

On Tuesday, April 5, 2016 at 1:09:46 PM UTC-4, Daniel Norber wrote:
> I have a generic package with a buffer functionality encapsulated using Ravenscar pragma profile.

I'm not sure of what you are really driving at--you probably aren't sure yourself.  The solution you are looking for may be an array of tasks inside a single package.  Task discriminants were added to allow such arrays to discover their identity during elaboration, and do what is necessarily different from members of the array at that time.

This should all happen during elaboration of the containing package.   I'm not sure if the Ravenscar pragmas will allow this.  You will probably want to have the real parameters for creating the buffers in an array, and the Ravenscar pragmas may object to that.  (Yes, we know that the array is static, but Ada only recognizes static scalars and strings.  Putting the data in a single huge String  would be ugly.)

      parent reply	other threads:[~2016-05-05 21:01 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
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 [this message]
replies disabled

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