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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,34d47d048b177d0b X-Google-Attributes: gid103376,public From: bobduff@world.std.com (Robert A Duff) Subject: Re: limited/non-limited in Ada95 Date: 1997/10/21 Message-ID: #1/1 X-Deja-AN: 284936063 References: <3442C2A3.3781@bix.com> <3449390f.142507@SantaClara01.news.InterNex.Net> Organization: The World Public Access UNIX, Brookline, MA Newsgroups: comp.lang.ada Date: 1997-10-21T00:00:00+00:00 List-Id: In article , Matthew Heaney wrote: >declare > D : aliased DT; > O : T (D'Unchecked_Access); >begin > >Will that do what you want? The problem is that as soon as you use 'Unchecked_Access, you lose the nice properties of access discriminants for preventing dangling references. Given the above, somebody might assign "Global := O;", creating a dangling ref, whereas that won't happen if it were an access discrim. - Bob