comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: little precision about anonymous access types
Date: Wed, 21 Mar 2018 17:46:06 -0500
Date: 2018-03-21T17:46:06-05:00	[thread overview]
Message-ID: <p8unbg$soe$1@franka.jacob-sparre.dk> (raw)
In-Reply-To: 42387d28-c983-4e58-9522-815ccd1ad0fb@googlegroups.com

"Mehdi Saada" <00120260a@gmail.com> wrote in message 
news:42387d28-c983-4e58-9522-815ccd1ad0fb@googlegroups.com...
> It sounds interesting. Could you explain a bit more what effect you refer 
> to ? Some code to show it ? Or a link to it.
> For the time being, the few things I know is that anonymous types are 
> useful and safe for : coextensions, and controlling access 
> parameters/results and the dispatching they allow.
> So if you allude to dispatching, I might understand your point (a bit), 
> otherwise I don't.

Yikes. Anonymous access type act differently than their named counterparts 
in the following cases (to name a few):
    (1) Hard to set the convention, pre/postconditions, other aspects 
(because there's no declaration);
    (2) Accessibility for anonymous access parameters (both objects and 
subprograms), discriminants, stand-alone objects;
    (3) Full context passed with anonymous access-to-subprogram parameters;
    (4) Dynamic accessibility causes a "tripping hazard" (Program_Error with 
some actual parameters) - access parameters, stand-alone objects.
    (5) Hidden null exclusion for controlling anonymous access parameters.

               Randy.




  reply	other threads:[~2018-03-21 22:46 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-19  0:37 little precision about anonymous access types Mehdi Saada
2018-03-19  1:08 ` Mehdi Saada
2018-03-19  1:18 ` Mehdi Saada
2018-03-19 14:51   ` AdaMagica
2018-03-19 22:40 ` Randy Brukardt
2018-03-20 17:49   ` G. B.
2018-03-20 23:56     ` Mehdi Saada
2018-03-21 22:46       ` Randy Brukardt [this message]
2018-05-15  0:20         ` Mehdi Saada
2018-05-15  0:28           ` Mehdi Saada
2018-05-15 21:48             ` Randy Brukardt
2018-05-16  8:14               ` Mehdi Saada
2018-05-16  8:23                 ` Mehdi Saada
2018-05-17 21:20                   ` Randy Brukardt
2018-05-17 21:17                 ` Randy Brukardt
2018-05-17 21:36                   ` J-P. Rosen
2018-05-18  7:44                   ` Dmitry A. Kazakov
2018-05-15 21:44           ` 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