From: Adam Beneschan <adam@irvine.com>
Subject: Re: access types
Date: Mon, 02 Jul 2007 08:37:36 -0700
Date: 2007-07-02T08:37:36-07:00 [thread overview]
Message-ID: <1183390656.619041.233010@e9g2000prf.googlegroups.com> (raw)
In-Reply-To: <wccejjsf9yq.fsf@shell01.TheWorld.com>
On Jul 1, 7:57 am, Robert A Duff <bobd...@shell01.TheWorld.com> wrote:
> "Dmitry A. Kazakov" <mail...@dmitry-kazakov.de> writes:
>
> > On Sat, 30 Jun 2007 21:54:15 -0400, Robert A Duff wrote:
>
> >> Brian May <b...@snoopy.apana.org.au> writes:
>
> >>> V := U;
>
> >> Try V := U.all'Access.
>
> > No, that won't work, because the access types are pool-specific.
>
> Ah, thanks, I missed that.
>
> >... It is a
> > nasty problem one has to fight all the way when dealing with tagged types
> > and pool-specific access types.
>
> > Sorry, Brian, you probably have to resort to Unchecked_Conversion or else
> > add "all" to your access types.
>
> "Doctor, it hurts when I forget 'all'."
>
> "So don't do that."
>
> ;-)
>
> Access-to-classwide should normally use "all".
> In fact, you won't go too far wrong if you always say "all"
> for all named access-to-variable types.
In fact, if I'm interpreting the manual correctly, once you add "all"
to the access types, then the type conversion should be legal:
V := X_Reference(U);
[Technically, only X_Reference has to be "access all" for this to be
legal, but you should do this for both access types anyway.]
-- Adam
next prev parent reply other threads:[~2007-07-02 15:37 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-01 0:39 access types Brian May
2007-07-01 1:54 ` Robert A Duff
2007-07-01 7:52 ` Dmitry A. Kazakov
2007-07-01 14:57 ` Robert A Duff
2007-07-01 19:41 ` Dmitry A. Kazakov
2007-07-02 0:12 ` Robert A Duff
2007-07-02 8:06 ` Dmitry A. Kazakov
2007-07-02 15:37 ` Adam Beneschan [this message]
-- strict thread matches above, loose matches on Subject: below --
1999-07-15 0:00 Access Types Ronald Ayoub
1999-07-21 0:00 ` Robert A Duff
1999-07-22 0:00 ` Steve Folly
1999-07-23 0:00 ` Tucker Taft
1998-05-27 0:00 Access types jsanchor
1998-05-28 0:00 ` Jerry van Dijk
1998-05-29 0:00 ` jsanchor
1998-05-30 0:00 ` Jerry van Dijk
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox