From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!gandalf.srv.welterde.de!news.jacob-sparre.dk!franka.jacob-sparre.dk!pnx.dk!.POSTED.rrsoftware.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: little precision about anonymous access types Date: Tue, 15 May 2018 16:44:44 -0500 Organization: JSA Research & Innovation Message-ID: References: <42387d28-c983-4e58-9522-815ccd1ad0fb@googlegroups.com> Injection-Date: Tue, 15 May 2018 21:44:45 -0000 (UTC) Injection-Info: franka.jacob-sparre.dk; posting-host="rrsoftware.com:24.196.82.226"; logging-data="26063"; mail-complaints-to="news@jacob-sparre.dk" X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.7246 Xref: reader02.eternal-september.org comp.lang.ada:52364 Date: 2018-05-15T16:44:44-05:00 List-Id: "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.