comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: little precision about anonymous access types
Date: Tue, 15 May 2018 16:44:44 -0500
Date: 2018-05-15T16:44:44-05:00	[thread overview]
Message-ID: <pdfkcd$pef$1@franka.jacob-sparre.dk> (raw)
In-Reply-To: b0a9cf48-6a6f-4f10-93a7-fd77c427728c@googlegroups.com

"Mehdi Saada" <00120260a@gmail.com> wrote in message 
news:b0a9cf48-6a6f-4f10-93a7-fd77c427728c@googlegroups.com...
>Otherwise it would be nothing short of insanely crazy batshit.

The best description of anonymous accesss types I've read in a while. ;-)

The intent is that you use named access types to allocate/deallocate memory, 
and just use anonymous types to store them for short periods (i.e. 
parameters, stand-alone objects). But then why not just use the named types 
everywhere?

Anonymous access types started out as a(n unnecessary) hack to allow 
dispatching on access types, and grew into something monsterous that really 
doesn't help for any of the needs that they were touted for. The worst big 
mistake that we made with Ada post-95 was expanding the use of these 
things - lots of complication, little value.

                           Randy.


      parent reply	other threads:[~2018-05-15 21:44 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
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 [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox