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.1 required=5.0 tests=BAYES_00, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,cadf87a839d5869c X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII X-Received: by 10.180.109.166 with SMTP id ht6mr1641597wib.0.1368583310333; Tue, 14 May 2013 19:01:50 -0700 (PDT) MIME-Version: 1.0 Path: hg5ni110148wib.1!nntp.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.86.MISMATCH!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.news.ucla.edu!nrc-news.nrc.ca!newsflash.concordia.ca!News.Dal.Ca!news.litech.org!news.etla.org!news.stack.nl!reality.xs3.de!news.jacob-sparre.dk!loke.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Generic access type convention and aliasing Date: Wed, 8 May 2013 15:44:04 -0500 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: <5a96b4f0-15d3-4fe2-9e9c-000f59b9c864@googlegroups.com> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: loke.gir.dk 1368045845 15622 69.95.181.76 (8 May 2013 20:44:05 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Wed, 8 May 2013 20:44:05 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Date: 2013-05-08T15:44:04-05:00 List-Id: "Yannick Duch�ne (Hibou57)" wrote in message news:op.wwqiolpeule2fv@cardamome... >Le Tue, 07 May 2013 23:03:17 +0200, Jacob Sparre Andersen news > a �crit: ... >> Moreover, the use of access parameters and SAOAATs should be avoided > >What is "SAOAATs"? A Baird-ism that the ARG has adopted: "Stand-Alone Object of an Anonymous Access Type". There's no shorter way to refer to it (I did write it out at the beginning of my message, but I wan't going to repeat that over and over ...) >> unless you really need dynamic accessibility. >What I'm trying to achieve, is to have access to the object storage >designated by the access, while preventing manipulation (including copying >at any life-time scope) of this access value, only dereference. The only >way I know to achieve this, is by passing `Element.all` to an >out/in-out/in parameter of a callback, but I would like to avoid control >inversion (this breaks the flow). My point was that you get the static checks you want so long as no access parameters and SAOAATs exist in your program. (They're accessibility checks, but are required to be made at compile-time.) You could use AdaControl or even restrictions pragmas to enforce that. That's probably better than trying to "roll-your-own" checks. OTOH, the strategy you laid out after the above quote might be better for other reasons. Randy.