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,fa2221f5dd5f5100 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-02-22 07:31:49 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!chcgil2-snh1.gtei.net!news.gtei.net!wn12feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!rwcrnsc54.POSTED!not-for-mail From: "Steve" Newsgroups: comp.lang.ada References: <816517EFDE1ABFFF.672EFD9C99861B55.1999743ACE4BA64B@lp.airnews.net> Subject: Re: Newbie question about pointers in GNAT 3.15p on Windows 2000 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Message-ID: NNTP-Posting-Host: 12.211.13.75 X-Complaints-To: abuse@attbi.com X-Trace: rwcrnsc54 1045927909 12.211.13.75 (Sat, 22 Feb 2003 15:31:49 GMT) NNTP-Posting-Date: Sat, 22 Feb 2003 15:31:49 GMT Organization: AT&T Broadband Date: Sat, 22 Feb 2003 15:31:49 GMT Xref: archiver1.google.com comp.lang.ada:34425 Date: 2003-02-22T15:31:49+00:00 List-Id: Using an acceess variable to reference a local variable is inherently risky since the memory being accessed is only valid for the lifetime of the procedure or function in which the variable is declared. For this reason using the 'Access attribute is restricted for these variables. If you are absolutely certain the variable will not be referenced after the lifetime of the procedure or function in which it is declared, you may use 'Unchecked_Access to specifically get around this restriction. Using 'Unchecked_Access is a way of saying "I know what I'm doing is risky, but I want to do it anyway". I hope this helps, Steve (The Duck)