comp.lang.ada
 help / color / mirror / Atom feed
From: Graham Stark <graham.stark@virtual-worlds.biz>
Subject: How can I declare a collection of an interface?
Date: Fri, 2 Aug 2013 09:39:14 -0700 (PDT)
Date: 2013-08-02T09:39:14-07:00	[thread overview]
Message-ID: <e520357f-db43-4f61-a850-ee622aaf66f4@googlegroups.com> (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

             reply	other threads:[~2013-08-02 16:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-02 16:39 Graham Stark [this message]
2013-08-02 16:53 ` How can I declare a collection of an interface? Eryndlia Mavourneen
2013-08-02 18:28 ` Adam Beneschan
2013-08-03  8:04   ` Graham Stark
replies disabled

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