comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: [Q] non-limited record and "self-pointer"
Date: Sat, 14 Feb 2004 00:04:26 -0600
Date: 2004-02-14T00:04:26-06:00	[thread overview]
Message-ID: <102rekmk9at8a99@corp.supernews.com> (raw)
In-Reply-To: b4682ab7.0402131624.45fbc352@posting.google.com

"Adam Beneschan" <adam@irvine.com> wrote in message
news:b4682ab7.0402131624.45fbc352@posting.google.com...
...
> See also AI95-00225 (Amendment 200Y), which uses the term "if and only
> if" to make it clear that the current instance is not aliased and thus
> 'Access and 'Unchecked_Access cannot be used on it.

AI-225 is fairly clear that the Ada 95 rule is screwy, and should be fixed.
And the fix is to make the use of 'Access illegal unless the type is
explicitly declared to be limited. The AI goes on to say that the current
wording allows it to work sometimes, but the result is nonsense, because
compilers are allowed to make copies of the object, in which the 'Access
value would point to the wrong place.

It's also interesting that AI came about because Tucker posted a note about
a bug found in their compiler by a posting on comp.lang.ada. So it seems
that we've had this discussion before here, and that not all implementers
got the note. :-)

                    Randy.








      reply	other threads:[~2004-02-14  6:04 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-08 21:26 [Q] non-limited record and "self-pointer" Georg Bauhaus
2004-02-09  0:58 ` Stephen Leake
2004-02-09  2:56   ` Georg Bauhaus
2004-02-09 12:50     ` Stephen Leake
2004-02-09 15:45       ` Georg Bauhaus
2004-02-10  1:35         ` Dan Eilers
2004-02-10  2:30           ` Stephen Leake
2004-02-10  7:20             ` Robert I. Eachus
2004-02-11 18:41               ` Georg Bauhaus
2004-02-11 22:05                 ` Randy Brukardt
2004-02-12  0:21                 ` Robert I. Eachus
2004-02-12 20:44                   ` Georg Bauhaus
2004-02-14  0:25                     ` Robert I. Eachus
2004-02-14  4:09                       ` Robert I. Eachus
2004-02-14  0:24               ` Adam Beneschan
2004-02-14  6:04                 ` Randy Brukardt [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