From: Adam Beneschan <adam@irvine.com>
Subject: Re: Object-Oriented style question
Date: Mon, 9 Jan 2012 14:34:17 -0800 (PST)
Date: 2012-01-09T14:34:17-08:00 [thread overview]
Message-ID: <2c213807-20cd-4b06-b2fa-c27827c9b747@f11g2000yql.googlegroups.com> (raw)
In-Reply-To: wccfwfqi8gn.fsf@shell01.TheWorld.com
On Jan 8, 6:18 am, Robert A Duff <bobd...@shell01.TheWorld.com> wrote:
> Georg Bauhaus <rm-host.bauh...@maps.futureapps.de> writes:
> > function Info (Item : in T) return Value;
>
> This is the right way to do it. Don't use access types when
> you don't need to. That goes double for anonymous access
> types, and triple for cases involving run-time accessibility
> checks, as the cases below do.
>
> I can't think of any good reason to use access parameters
> in Ada. Note: "access parameter" does not mean "parameter of
> an access type", it means "parameter of an ANONYMOUS access type".
I presume you mean "parameter of an anonymous access-to-object type"?
I think there are very good reasons for using anonymous access-
subprogram parameters.
-- Adam
next prev parent reply other threads:[~2012-01-09 22:35 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-08 12:45 Object-Oriented style question Georg Bauhaus
2012-01-08 12:52 ` Simon Wright
2012-01-08 13:25 ` Dmitry A. Kazakov
2012-01-08 14:18 ` Robert A Duff
2012-01-08 20:32 ` Martin Dowie
2012-01-08 20:52 ` Robert A Duff
2012-01-09 22:34 ` Adam Beneschan [this message]
2012-01-09 23:21 ` Robert A Duff
2012-01-10 8:34 ` Dmitry A. Kazakov
2012-01-09 8:55 ` Maciej Sobczak
2012-01-09 23:58 ` Georg Bauhaus
2012-01-10 8:47 ` Maciej Sobczak
2012-01-10 10:27 ` Dmitry A. Kazakov
2012-01-10 12:27 ` Georg Bauhaus
2012-01-11 8:54 ` Maciej Sobczak
2012-01-10 21:26 ` Randy Brukardt
2012-02-08 12:23 ` Yannick Duchêne (Hibou57)
2012-02-08 12:39 ` Yannick Duchêne (Hibou57)
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox