From: dewar@cs.nyu.edu (Robert Dewar)
Subject: Re: access variable Q:
Date: 1996/06/16
Date: 1996-06-16T00:00:00+00:00 [thread overview]
Message-ID: <dewar.834982455@schonberg> (raw)
In-Reply-To: 31C43F54.74E62073@jinx.sckans.edu
David Morton asks
"int *ptr;
int i;
ptr = &i;"
[how to do in Ada]
well you can exactly duplicate this using aliased and the 'Access attribute,
but a best guess is that you do not want to do this. This sounds like
a matter of rewriting C code in Ada but keeping C style, generally a
bad idea. Why not tell us what your problem is instead of asking for help
with your C-style solutions, there is probably a better way to do things
in Ada. This kind of use of pointers is inherently risky.
next prev parent reply other threads:[~1996-06-16 0:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-06-16 0:00 access variable Q: David Morton
1996-06-16 0:00 ` Robert Dewar [this message]
1996-06-17 0:00 ` David Morton
1996-06-18 0:00 ` Jon S Anthony
1996-06-19 0:00 ` John Herro
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox