comp.lang.ada
 help / color / mirror / Atom feed
* How to do multiple instances of a generic packages in automated way. (using ravenscar profile)
@ 2016-04-05 17:09 danielnorberto
  2016-04-05 17:39 ` Jeffrey R. Carter
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: danielnorberto @ 2016-04-05 17:09 UTC (permalink / raw)



I have a generic package with a buffer functionality encapsulated using Ravenscar pragma profile.

This buffer has also a protected procedures an entries for multitasking.

I need to instantiate several of this packages. In this moment the code is working in this way:

package buffer1 is new buffer(configuration_1);

package buffer2 is new buffer(configuration_2);

.....

package bufferN is new buffer(configuration_N);

The problem is that  i will need a quantity up to 500 or 1000 independent buffers packages, so i'm trying to think in other way to instantiate this generics packages than fill 500 or 1000 lines of instances.

To make this thing more difficult, Ravenscar pragma profile obligates to define everything is posible in compilation time.

I was looking to do something like a "constrained generics package array" but i don't know how this language can manage this situation.

Does anybody knows a better approach to his problem? 
Thanks in advance

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2016-05-05 21:01 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox