From: Shark8 <onewingedshark@gmail.com>
Subject: Re: Confused about class-wide types
Date: Sun, 20 Mar 2016 06:18:25 -0700 (PDT)
Date: 2016-03-20T06:18:25-07:00 [thread overview]
Message-ID: <c5f5d5ac-89c4-4b60-9388-f461ed69eb0e@googlegroups.com> (raw)
In-Reply-To: <86oaa97635.fsf@gaheris.avalon.lan>
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.)
next prev parent reply other threads:[~2016-03-20 13:18 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 [this message]
2016-03-20 13:56 ` Mart van de Wege
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