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,daf1e35a4e978e9d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-20 09:05:37 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dewar@gnat.com (Robert Dewar) Newsgroups: comp.lang.ada Subject: Re: have to use unrestricted access but just what about access Date: 20 Jun 2002 09:05:35 -0700 Organization: http://groups.google.com/ Message-ID: <5ee5b646.0206200805.7c4be786@posting.google.com> References: <0x8Q8.6779$ZP1.1263481@news11-gui.server.ntli.net> NNTP-Posting-Host: 205.232.38.14 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1024589137 10993 127.0.0.1 (20 Jun 2002 16:05:37 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 20 Jun 2002 16:05:37 GMT Xref: archiver1.google.com comp.lang.ada:26496 Date: 2002-06-20T16:05:37+00:00 List-Id: "chris.danx" wrote in message news:<0x8Q8.6779$ZP1.1263481@news11-gui.server.ntli.net>... > Hi, > > How can the unrestricted_access attribute be replaced by > just access in the following code? The referenced post in this thread is an excellent lesson in when how to seriously misuse the Unrestricted_Access attribute. Of course it is no worse than Address, since it is exactly equivalent to taking 'Address and then applying an unchecked conversion to get the access type in question. But even a cursory examination of this code will show that it is very likely to generate a dangling pointer.