From: Mart van de Wege <mvdwege@gmail.com>
Subject: Re: Confused about class-wide types
Date: Sun, 20 Mar 2016 14:56:16 +0100
Date: 2016-03-20T14:56:16+01:00 [thread overview]
Message-ID: <86k2kx6ynz.fsf@gaheris.avalon.lan> (raw)
In-Reply-To: c5f5d5ac-89c4-4b60-9388-f461ed69eb0e@googlegroups.com
Shark8 <onewingedshark@gmail.com> writes:
> On Sunday, March 20, 2016 at 5:16:24 AM UTC-6, Mart van de Wege wrote:
>> package Events is new Ada.Containers.Vectors ( Index_Type => Natural,
>> Element_Type => Event_Ptr);
>
>
> If you are using Ada 2012, then you can change "Events" to
> Ada.Containers.Indefinite_Vectors with an Element_Type of
> Event'Class... which should, in turn, eliminate the need for any
> pointer-types in the test. (It also has the advantage of not needing
> to check the vector for Null.)
So *that* is what Indefinite_Vectors is for. That would solve my issues,
yes.
Mart
--
"We will need a longer wall when the revolution comes."
--- AJS, quoting an uncertain source.
next prev parent reply other threads:[~2016-03-20 13:56 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-20 11:15 Confused about class-wide types Mart van de Wege
2016-03-20 12:29 ` Dmitry A. Kazakov
2016-03-20 13:58 ` Mart van de Wege
2016-03-20 14:26 ` Dmitry A. Kazakov
2016-03-20 12:46 ` Simon Wright
2016-03-20 14:01 ` Mart van de Wege
2016-03-20 13:18 ` Shark8
2016-03-20 13:56 ` Mart van de Wege [this message]
2016-03-21 21:54 ` Randy Brukardt
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox