comp.lang.ada
 help / color / mirror / Atom feed
From: Jere <jhb.chat@gmail.com>
Subject: Re: Anonymous Access and Accessibility Levels
Date: Sat, 11 May 2019 05:06:21 -0700 (PDT)
Date: 2019-05-11T05:06:21-07:00	[thread overview]
Message-ID: <a3d74466-9f8a-483f-bdd4-4752439d79f0@googlegroups.com> (raw)
In-Reply-To: <q9ve6a$b2h$1@dont-email.me>

On Friday, April 26, 2019 at 1:12:43 PM UTC-4, G.B. wrote:
> On 24.04.19 12:42, Jere wrote:
> 
> > I'm definitely aware of the HoD and its reputation.  I am a bit
> > discourage that there is not any resource (person or written)
> > available to help newcomers (or heck even somewhat experienced
> > Ada programmers) with issues like these.
> 
> It might be too late when designs involving anonymous access
> types become issues, but then any design can possibly
> have fewer issues if the Ada Rationale is first consulted.
> I'm concluding this in part observing designs of programmers who
> have chosen to transport a pointer-based mind set to Ada.
> This means, they are perhaps not aware of the Rationale.
> 
> As an additional consequence, if GNAT advises to use pointer
> types, programmers may not always be given the best advice
> from a design point of view, only from a compiler that cannot
> undo designs.

I'm not sure the Rationale covers all of the use cases where 
access types end up being needed.  I know working in a lot of
non heap based designs (no heap on my chip), General access types
occasionally have to be used as part of the innards of some 
complex type.  Named access types are too restrictive and end up
requiring the use of Unchecked_Access and in some other cases can 
lead to bad designs when used.  That leaves anonymous access types, 
which seem incomplete.  Ada needs safe access types that are 
more flexible than named access types.  They don't have to be 
anonymous necessarily, but they are a gap in the language design,
especially when you are dealing with limited types, which have 
no container support or similar, so the standard ways of avoiding
access types don't apply.

  reply	other threads:[~2019-05-11 12:06 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-20 15:29 Anonymous Access and Accessibility Levels Jere
2019-04-20 15:58 ` J-P. Rosen
2019-04-22 22:03   ` Randy Brukardt
2019-04-24 10:42   ` Jere
2019-04-24 23:27     ` Randy Brukardt
2019-04-26  2:47       ` Optikos
2019-05-11 11:58         ` Jere
2019-04-26 17:12     ` G.B.
2019-05-11 12:06       ` Jere [this message]
2019-05-14  0:03         ` Randy Brukardt
2019-04-22 22:11 ` Randy Brukardt
2019-04-22 22:23   ` Shark8
2019-04-23 23:42     ` Randy Brukardt
2019-04-23  7:44   ` Dmitry A. Kazakov
2019-04-23 23:47     ` Randy Brukardt
2019-04-24 10:34   ` Jere
2019-04-24 10:44     ` Jere
2019-04-24 23:21       ` 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