comp.lang.ada
 help / color / mirror / Atom feed
* How can I declare a collection of an interface?
@ 2013-08-02 16:39 Graham Stark
  2013-08-02 16:53 ` Eryndlia Mavourneen
  2013-08-02 18:28 ` Adam Beneschan
  0 siblings, 2 replies; 4+ messages in thread
From: Graham Stark @ 2013-08-02 16:39 UTC (permalink / raw)


Hi,
   if I have (say):

type Person is interface;

and I want to declare a collection of Person, how can I declare the type I'd need? I've tried:

type PA is array(1..2) of Person;

or

package PV is new Ada.Containers.Vectors( Positive, Person );

and the same with 'Class.

Graham

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

end of thread, other threads:[~2013-08-03  8:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-02 16:39 How can I declare a collection of an interface? Graham Stark
2013-08-02 16:53 ` Eryndlia Mavourneen
2013-08-02 18:28 ` Adam Beneschan
2013-08-03  8:04   ` Graham Stark

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