comp.lang.ada
 help / color / mirror / Atom feed
From: danielnorberto@gmail.com
Subject: How to do multiple instances of a generic packages in automated way. (using ravenscar profile)
Date: Tue, 5 Apr 2016 10:09:43 -0700 (PDT)
Date: 2016-04-05T10:09:43-07:00	[thread overview]
Message-ID: <56ff6352-590e-4de7-a361-bc2fec0538fb@googlegroups.com> (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

             reply	other threads:[~2016-04-05 17:09 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-05 17:09 danielnorberto [this message]
2016-04-05 17:39 ` How to do multiple instances of a generic packages in automated way. (using ravenscar profile) 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
replies disabled

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