comp.lang.ada
 help / color / mirror / Atom feed
From: "Martin Krischik" <krischik@users.sourceforge.net>
Subject: Re: How to pass around access types to interfaces?
Date: Sat, 25 Oct 2008 17:43:26 +0200
Date: 2008-10-25T17:43:26+02:00	[thread overview]
Message-ID: <op.ujk7aodyz25lew@macpro.krischik.com> (raw)
In-Reply-To: c5772601-5fc5-4f2c-a75d-241accf9072d@k30g2000hse.googlegroups.com

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:

http://en.wikibooks.org/wiki/Ada_Programming/Types/access#Access_vs._access_all

Six month after I switched from C++ to Ada I removed about 80% access  
types from the code I created until then. And from those access types  
which remained more did not need the "all" and I consequently removed that  
as well.

Martin
-- 
Martin Krischik



  parent reply	other threads:[~2008-10-25 15:43 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 [this message]
2008-10-25 22:15   ` Robert A Duff
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