From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: access types
Date: Sun, 01 Jul 2007 10:57:17 -0400
Date: 2007-07-01T10:57:17-04:00 [thread overview]
Message-ID: <wccejjsf9yq.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: 3b3itu0t79zl$.czig4w8nzdmp.dlg@40tude.net
"Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> writes:
> On Sat, 30 Jun 2007 21:54:15 -0400, Robert A Duff wrote:
>
>> Brian May <bam@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.
Unch_Conv is not the right solution, here!
- Bob
next prev parent reply other threads:[~2007-07-01 14:57 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 [this message]
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
-- 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