comp.lang.ada
 help / color / mirror / Atom feed
From: Matthew Heaney <matthew_heaney@acm.org>
Subject: Re: Ada 83 Pointers question
Date: 1999/01/21
Date: 1999-01-21T00:00:00+00:00	[thread overview]
Message-ID: <m3u2xk4jtt.fsf@mheaney.ni.net> (raw)
In-Reply-To: 36A741BA.E500BC6D@spam.innocon.com

Jeff Carter <spam.carter.not@spam.innocon.com> writes:

> It is perfectly legal Ada 83 to instantiate Unchecked_Conversion to
> convert from System.Address to an access type.

That's being _very_ generous...

> If the result designates the value you want it to, then this should
> work fine for you. However, such an approach is entirely compiler
> dependent. This may not bother you, since you are maintaining the
> compiler.

The issue is whether or not pointers to unconstrained arrays use a dope
vector or not, and whether the pointer points to the dope vector, or to
the array itself.

In general, if you convert from System.Address to an access type, you
better know what you are doing!





      reply	other threads:[~1999-01-21  0:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-01-20  0:00 Ada 83 Pointers question Lowe Anthony A
1999-01-21  0:00 ` dennison
1999-01-21  0:00 ` robert_dewar
1999-01-21  0:00   ` dennison
1999-01-21  0:00 ` Jeff Carter
1999-01-21  0:00   ` Matthew Heaney [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox