From: Simon Wright <simon.j.wright@mac.com>
Subject: Re: Loosing tagged type via linked list
Date: Sat, 09 Feb 2008 11:40:35 +0000
Date: 2008-02-09T11:40:35+00:00 [thread overview]
Message-ID: <m24pcibbnw.fsf@mac.com> (raw)
In-Reply-To: 47ad2289$0$370$9b4e6d93@newsspool2.arcor-online.net
Georg Bauhaus <see.reply.to@maps.futureapps.de> writes:
> jason.height@gmail.com wrote:
>> I am attempting this in Ada95, with my own Linked_List container impl,
>> which seems to be destroying the type information. If anyone knows a
>> Ada95 list implementation that can store items of different types
>> (derived from a base type) then please let me know.
>
> The Booch components will let you do this, using indefinite
> generic formal types.
> http://sourceforge.net/project/showfiles.php?group_id=135616.
If you want to use a definite formal type, then access-to-classwide is
what you need (there will have to be an access under the hood,
whatever solution you adopt).
type A_Type_P is access A_Type'Class;
Allocation and, more challengingly perhaps, deallocation are then up
to you.
> (The WiKi seems out of order at this time; doc is contained in
> an accompanying archive.)
So it is. First time I've heard! Can't be visited very often ...
next prev parent reply other threads:[~2008-02-09 11:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-09 1:05 Loosing tagged type via linked list jason.height
2008-02-09 3:48 ` Georg Bauhaus
2008-02-09 11:40 ` Simon Wright [this message]
2008-02-10 17:11 ` Simon Wright
2008-02-09 9:38 ` Dmitry A. Kazakov
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox