comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Ada0Y limited with
Date: Fri, 1 Oct 2004 13:30:45 -0500
Date: 2004-10-01T13:30:45-05:00	[thread overview]
Message-ID: <35OdndWLZciSP8DcRVn-tQ@megapath.net> (raw)
In-Reply-To: pan.2004.10.01.07.52.22.467934@power.com.pl

"Wojtek Narczynski" <wojtek@power.com.pl> wrote in message
news:pan.2004.10.01.07.52.22.467934@power.com.pl...
> On Thu, 30 Sep 2004 18:40:36 -0500, Randy Brukardt wrote:
>
> > So, component Prev is wrong; it should look like component Next.
>
> But then it will not be legal to assign 'Whole.Whole_Access' to 'access
> Whole_Type' members?

It is legal; named access types implicitly convert to anonymous access types
as needed. (See 8.6(25)). That's even true in Ada 95, although the rule has
been broadened for Ada 2005.

To go to the named type from the anonymous one, you'd need a type
conversion.

But you may not need the named type at all, since anonymous types can be
used in almost all contexts.

                       Randy.







  reply	other threads:[~2004-10-01 18:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-30 22:23 Ada0Y limited with Wojtek Narczynski
2004-09-30 23:40 ` Randy Brukardt
2004-10-01  7:52   ` Wojtek Narczynski
2004-10-01 18:30     ` Randy Brukardt [this message]
2004-10-01 18:51       ` Wojtek Narczynski
replies disabled

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