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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,a6449b2443dcdda1 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!feeder.news-service.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Wed, 30 Apr 2008 11:21:06 +0200 From: Georg Bauhaus Reply-To: rm.tsoh+bauhaus@maps.futureapps.de User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Access keyword References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <48183a02$0$6780$9b4e6d93@newsspool2.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 30 Apr 2008 11:21:06 CEST NNTP-Posting-Host: 04d28b79.newsspool2.arcor-online.net X-Trace: DXC=o^PcP08\57WmG86`U=_nC_A9EHlD;3YcR4Fo<]lROoRQ8kFG2XPCY\c7>ejVXTYWkQ3a8iF_jM_DKmCSj7X X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:21133 Date: 2008-04-30T11:21:06+02:00 List-Id: Maciej Sobczak wrote: > On 29 Kwi, 23:32, "Randy Brukardt" wrote: > >> Anonymous access types (a superset of access parameters) mainly exist in Ada >> to make it easier for C++ and Java programmers to move their rotten designs >> to Ada. > > Anonymous access types are used by Ada.Containers for iteration (among > others). "Rationale" by Barnes presents some nice examples with > downward closures as well. Aren't these implementation types (needed in the body of an Integrate procedure, say) rather than types exposed by some public signature? Similarly, the Process procedures, passed as access parameters to Iterate in Ada.Containers, enable referring to parameters of some surrounding subprogram (the downwards closures you mention had not been in the original Charles-derived design, which had started from generics (that cannot refer to parameters)). So again, these access parameters are good for implementing things. However, they need not be shown to public clients of things.