comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Comparing Access Types
Date: Tue, 21 Nov 2017 19:01:10 -0600
Date: 2017-11-21T19:01:10-06:00	[thread overview]
Message-ID: <ov2i8m$i8p$1@franka.jacob-sparre.dk> (raw)
In-Reply-To: ov0pp1$1rlu$1@gioia.aioe.org

"Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> wrote in message 
news:ov0pp1$1rlu$1@gioia.aioe.org...
...
>> it's pretty much purpose-built to do that (it's in the name, after all).
>
> It has a nasty issue that you cannot pass your own access type. It is 
> clear that not any access type could be acceptable. The implementation 
> should be free to reject some upon instantiation.

Bob apologies for that nearly every time the subject comes up. (Not sure if 
he will do it here...) It is generally acknowledged to be a mistake; any 
general access type with convention Ada ought to work, and that is easily 
modeled with a generic formal access type. Having the type declared in the 
instance is a pain. It's not quite the pain than many think it is, since one 
can use a type conversion from the type declared in the instance to any 
other general access type with the right convention and designated type. But 
all of those extra conversions are just noise, and add nothing to program 
readability or understandability.

                                              Randy.




  reply	other threads:[~2017-11-22  1:01 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-09  5:37 Comparing Access Types Jere
2017-11-09  8:29 ` Simon Wright
2017-11-09  8:33 ` Dmitry A. Kazakov
2017-11-09 22:38   ` Robert A Duff
2017-11-10  8:35     ` Dmitry A. Kazakov
2017-11-10 15:11       ` Jere
2017-11-10 16:05       ` Robert A Duff
2017-11-10 16:30         ` Robert A Duff
2017-11-16  1:17           ` Randy Brukardt
2017-11-18 22:01             ` Robert A Duff
2017-11-20 22:25               ` Randy Brukardt
2017-11-21  0:30                 ` Shark8
2017-11-21  8:57                   ` Dmitry A. Kazakov
2017-11-22  1:01                     ` Randy Brukardt [this message]
2017-11-10 15:20     ` Jere
2017-11-10 16:00       ` Robert A Duff
2017-11-10 16:22         ` Jere
2017-11-10 15:06   ` Jere
2017-11-16  1:21     ` Randy Brukardt
2017-11-16  1:13 ` 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