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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c08a7609345f4e5 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nntp.club.cc.cmu.edu!feeder.erje.net!newsfeed.straub-nv.de!nuzba.szn.dk!news.jacob-sparre.dk!pnx.dk!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Limited use for limited with? Date: Thu, 7 Oct 2010 19:07:43 -0500 Organization: Jacob Sparre Andersen Message-ID: References: <853314bc-0f79-435f-86a5-d7bcdd610731@c10g2000yqh.googlegroups.com> <82y6ajg07m.fsf@stephe-leake.org> <82ocb6ushq.fsf@stephe-leake.org> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1286496465 28239 69.95.181.76 (8 Oct 2010 00:07:45 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Fri, 8 Oct 2010 00:07:45 +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.5931 Xref: g2news1.google.com comp.lang.ada:14428 Date: 2010-10-07T19:07:43-05:00 List-Id: "Martin Krischik" wrote in message news:op.vj7xjle3z25lew@macpro-eth1.krischik.com... ... >> Inside Foo_Two, we know that the accessibility level of A is the same as >> the declaration of My_Access_Type, > > Are you realy sure about that? My_Access_Type is an access *all* and could > point to an aliased value on the stack. He is. If you try to store an access to an aliased value on the stack into My_Access_Type, you'll get a compile-time error that the accessibility fails. (Or, in a few obscure cases, Program_Error will be raised.) The rules that guarentee this are a constant source of headaches for the ARG and implementers, but Ada users don't need to worry about that. Randy.