From: bobduff@world.std.com (Robert A Duff)
Subject: Re: Extending A Generic Signature Package
Date: 1997/03/22
Date: 1997-03-22T00:00:00+00:00 [thread overview]
Message-ID: <E7G9In.FEr@world.std.com> (raw)
In-Reply-To: 5guuehINN6iq@thalamus.cis.ohio-state.edu
In article <5guuehINN6iq@thalamus.cis.ohio-state.edu>,
david scott gibson <dgibson@thalamus.cis.ohio-state.edu> wrote:
>So in this case it's clear to us and the compiler what specific type
>derived from Base Get_Object returns. It may or may not be an access
>type. If an access type, Op1 could have an access parameter formal
>and still dispatch. However, Get_Object must return a tagged type and
>thus the value returned must be returned by reference in either case,
>right?
No, tagged types are returned by copy, unless the type is limited.
>... So whether explicit or not X, the value of X must be a pointer
>to some object. Is that right? If Get_Object doesn't return an acces
>type and we don't use Unchecked_Access or aliased variables anywhere
>in the program, does Ada guarantee that the object to which X points
>cannot be aliased?
Not sure exactly what you're getting at, but Ada allows and/or requires
pass-by-reference in some cases, and those constitute aliases in the
normal sense of the word.
- Bob
next prev parent reply other threads:[~1997-03-22 0:00 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-03-17 0:00 Extending A Generic Signature Package david scott gibson
1997-03-18 0:00 ` Tucker Taft
1997-03-18 0:00 ` Alexander V. Konstantinou
1997-03-21 0:00 ` Geert Bosch
1997-03-21 0:00 ` Brian Rogoff
1997-03-22 0:00 ` Robert A Duff
1997-03-21 0:00 ` Jon S Anthony
1997-03-21 0:00 ` david scott gibson
1997-03-22 0:00 ` Robert A Duff [this message]
1997-03-22 0:00 ` Jon S Anthony
1997-03-21 0:00 ` david scott gibson
1997-03-22 0:00 ` Robert A Duff
1997-03-25 0:00 ` Jon S Anthony
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox