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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,50137bb64a119cfc X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-02-21 13:33:44 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: mheaney@on2.com (Matthew Heaney) Newsgroups: comp.lang.ada Subject: Re: "access constant" discriminant Date: 21 Feb 2003 13:33:43 -0800 Organization: http://groups.google.com/ Message-ID: <1ec946d1.0302211333.39f51961@posting.google.com> References: <_TO1a.14664$9y2.6601@nwrddc01.gnilink.net> <3CS1a.55972$2H6.1357@sccrnsc04> <3E4E9248.3E71D984@adaworks.com> <1ec946d1.0302201642.66eb93e5@posting.google.com> <1045839826.87966@master.nyc.kbcfp.com> NNTP-Posting-Host: 66.162.65.162 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1045863224 24359 127.0.0.1 (21 Feb 2003 21:33:44 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 21 Feb 2003 21:33:44 GMT Xref: archiver1.google.com comp.lang.ada:34391 Date: 2003-02-21T21:33:44+00:00 List-Id: Hyman Rosen wrote in message news:<1045839826.87966@master.nyc.kbcfp.com>... > Matthew Heaney wrote: > > Access parameters carry accessibility information around, to check > > that an object in an outer scope doesn't refer to another object in an > > inner scope. > > Do they actually carry this information around? > I thought that the language rules just prevented > such "inner" addresses from winding up in an > "outer" pointer, not that the pointers themselves > were "fat". Access parameters carry accessibilty information around (not all checks can be done statically). Note that named access types do *not* carry the same information. When an access check fails at run-time, it's often because you're assigning the value of an access parameter to an access object. That's why you sometimes have to do the assignment using 'Unchecked_Access instead.