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 Path: border1.nntp.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nac.net!feeder.erje.net!eu.feeder.erje.net!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!gegeweb.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Accessibility checks Date: Wed, 24 Jul 2013 15:27:45 +0200 Organization: cbb software GmbH Message-ID: <145t0st2ukuvp.q74tk0wrblld$.dlg@40tude.net> References: <87mwplvthn.fsf@mid.deneb.enyo.de> <9a48d84b-4160-4824-a658-48dfcf12d0d6@googlegroups.com> <862c7bde-dfbe-44a4-8180-017c4e73f585@googlegroups.com> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: IenaDxMXK2hi7fvYcb+MlQ.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 X-Original-Bytes: 1801 Xref: number.nntp.dca.giganews.com comp.lang.ada:182668 Date: 2013-07-24T15:27:45+02:00 List-Id: On Wed, 24 Jul 2013 06:01:21 -0700 (PDT), ake.ragnar.dahlgren@gmail.com wrote: > I do not use anonymous access types either. Note that there exist quite important cases where anonymous access types are necessary and unavoidable: 1. Primitive operations. Named access types arguments cannot be dispatching; 2. Rosen's trick. Maybe it works with named types in Ada 2012. I didn't check it; 3. Discriminants; 4. Returning managed objects by reference. P.S. Arguably these issues could be resolved without anonymous access types and possibly without access types. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de