comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: How to pass around access types to interfaces?
Date: Sat, 25 Oct 2008 18:15:09 -0400
Date: 2008-10-25T18:15:09-04:00	[thread overview]
Message-ID: <wccej24uxsi.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: op.ujk7aodyz25lew@macpro.krischik.com

"Martin Krischik" <krischik@users.sourceforge.net> writes:

> Am 24.10.2008, 13:45 Uhr, schrieb Sven <sven.weidauer@gmail.com>:
>
>>   type My_Interface_Access is access all My_Interface'Class;
>
> Do you realy need an access type? Read:
>
> http://en.wikibooks.org/wiki/Ada_Programming/Object_Orientation#The_class-wide_type
>
> If so, does it need to be an access all? Read:

In my experience, access-to-class-wide types almost always need to have
"all", because you often want to convert from access-to-T2 up to
access-to-T1'Class (where T2 is a descendant of T1).

- Bob



  reply	other threads:[~2008-10-25 22:15 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-24 11:45 How to pass around access types to interfaces? Sven
2008-10-24 12:24 ` Niklas Holsti
2008-10-24 12:49   ` Sven
2008-10-24 13:55     ` Ludovic Brenta
2008-10-24 21:32 ` sjw
2008-10-25  8:54   ` Sven
2008-10-25 15:43 ` Martin Krischik
2008-10-25 22:15   ` Robert A Duff [this message]
2008-10-26  8:02     ` Dmitry A. Kazakov
2008-10-26 15:50     ` Martin Krischik
2008-10-28 13:41       ` Maciej Sobczak
2008-10-29 14:15         ` Martin Krischik
2008-10-31 13:38           ` Maciej Sobczak
2008-10-31 14:46             ` Dmitry A. Kazakov
2008-10-29 12:42   ` Sven
2008-10-29 13:17     ` 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