From: Simon Wright <simon@pushface.org>
Subject: Re: Ada.Containers.Indefinite_Holders and limited types
Date: Wed, 15 Nov 2017 07:52:18 +0000
Date: 2017-11-15T07:52:18+00:00 [thread overview]
Message-ID: <lyvaicdln1.fsf@pushface.org> (raw)
In-Reply-To: oug039$c2g$1@gioia.aioe.org
Victor Porton <porton@narod.ru> writes:
> Why Ada.Containers.Indefinite_Holders (as of Ada2012) accepts
> "private" Element_Type? I would like it be "limited private" instead.
>
> The particular reason I want this is to hold Timing_Event inside an
> indefinite holder inside a record.
Because there are Holder operations that allow copying of the
Element_Type, perhaps; e.g. Copy.
Why not use "access Timing_Event'Class" or suchlike?
next prev parent reply other threads:[~2017-11-15 7:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-15 0:00 Ada.Containers.Indefinite_Holders and limited types Victor Porton
2017-11-15 7:52 ` Simon Wright [this message]
2017-11-15 8:35 ` Dmitry A. Kazakov
2017-11-15 22:24 ` 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