From: David Gressett <gressett@airmail.net>
Subject: Re: Newbie question about pointers in GNAT 3.15p on Windows 2000
Date: Mon, 24 Feb 2003 13:05:12 -0600
Date: 2003-02-24T13:05:12-06:00 [thread overview]
Message-ID: <1E8A654E77630350.41A48F3C993019DF.E250C2C648709E88@lp.airnews.net> (raw)
In-Reply-To: mailman.35.1045868531.9948.comp.lang.ada@ada.eu.org
On Fri, 21 Feb 2003 17:03:14 -0600, "David C. Hoos, Sr."
<david.c.hoos.sr@ada95.com> 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.
next prev parent reply other threads:[~2003-02-24 19:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-21 21:20 Newbie question about pointers in GNAT 3.15p on Windows 2000 David Gressett
2003-02-21 23:03 ` David C. Hoos, Sr.
2003-02-24 19:05 ` David Gressett [this message]
2003-02-24 19:25 ` David Gressett
2003-02-22 15:31 ` Steve
2003-02-24 6:40 ` Newbie question about pointers in GNAT 3.15p on Windows 2000 : to Steve prashna
2003-02-25 2:57 ` Steve
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox