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-24 11:07:04 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.airnews.net!cabal12.airnews.net!usenet From: David Gressett Newsgroups: comp.lang.ada Subject: Re: Newbie question about pointers in GNAT 3.15p on Windows 2000 Date: Mon, 24 Feb 2003 13:05:12 -0600 Organization: Airnews.net! at Internet America Message-ID: <1E8A654E77630350.41A48F3C993019DF.E250C2C648709E88@lp.airnews.net> X-Orig-Message-ID: <7pqk5v81anl7s7rbpelo2jktu4kiiljoa0@4ax.com> References: <816517EFDE1ABFFF.672EFD9C99861B55.1999743ACE4BA64B@lp.airnews.net> Abuse-Reports-To: abuse at airmail.net to report improper postings NNTP-Proxy-Relay: library1-aux.airnews.net NNTP-Posting-Time: Mon Feb 24 13:04:49 2003 NNTP-Posting-Host: ![lMD1k-W;ART@j (Encoded at Airnews!) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Newsreader: Forte Agent 1.8/32.548 Xref: archiver1.google.com comp.lang.ada:34528 Date: 2003-02-24T13:05:12-06:00 List-Id: On Fri, 21 Feb 2003 17:03:14 -0600, "David C. Hoos, Sr." wrote: >"Local" refers to the declarative region of the function X. > >That the pointer is "non-local" is a consequence of the fact that >the pointer _type_ is not in the local region. > >It's hard to see what is the point of this exercise, since the >value of P_Size is not used. But, in general taking the access of >a variable on the stack is not very useful (e.g., to return it as >the result of a function), since the local stack variable is subject >to corruption upon return from the function. Thanks. It's been 2 years since I have done any Ada, and I had learned very much the previous time. I ran across this while trying to do Windows system calls with the Windows binding that comes with the GNAT Windows compiler.