comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@world.std.com>
Subject: Re: Using COM Interfaces (was: Releasing Aliased Variables)
Date: Fri, 9 Mar 2001 17:01:26 GMT
Date: 2001-03-09T17:01:26+00:00	[thread overview]
Message-ID: <wccwv9yev15.fsf@world.std.com> (raw)
In-Reply-To: 3AA8F1FA.EEEC73D1@netscape.net

Byron Kauffman <byronbkauffman@netscape.net> writes:

> On the other hand, some of the methods defined for the DS objects pass
> pointers to pointers. Would it be a good idea to alias them?

I don't know the answer to your main question, but I can tell you the
Ada rule: if you want to say X'Access, then you must declare X to be
aliased.  If you want to say X'Address, then you *should* declare X to
be aliased.  It is irrelevant whether or not X is itself also a
pointer.

X'Unchecked_Access is like X'Access, except it allows the creation of
dangling pointers.

If you do not want to use any of these three attributes on X, then you
should not declare X to be aliased.

- Bob



  reply	other threads:[~2001-03-09 17:01 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-07 19:57 Releasing Aliased Variables Byron Kauffman
2001-03-07 20:44 ` tmoran
2001-03-07 21:12 ` Robert A Duff
2001-03-08 13:24   ` Florian Weimer
2001-03-08 14:37     ` Pat Rogers
2001-12-27 12:26       ` Florian Weimer
2001-03-08 14:52     ` Tucker Taft
2001-03-08 16:57     ` Robert A Duff
2001-03-09 15:08       ` Using COM Interfaces (was: Releasing Aliased Variables) Byron Kauffman
2001-03-09 17:01         ` Robert A Duff [this message]
2001-03-09 21:08         ` tmoran
2001-03-12 18:45     ` Releasing Aliased Variables Richard Kenner
2001-03-07 21:31 ` Florian Weimer
replies disabled

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