comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: Ambiguous reference - What is wrong with this?
Date: 15 Aug 2001 07:17:11 +0100
Date: 2001-08-15T06:17:11+00:00	[thread overview]
Message-ID: <x7v1ymdyhi0.fsf@smaug.pushface.org> (raw)
In-Reply-To: xtfe7.1336$Wm3.1010586@news1.rdc1.sfba.home.com

tmoran@acm.org writes:

> I think the problem occurs back at
> package Root.Child1 is
>     type Derive1 is new Base with private ;
> inherits
>     procedure Some_Proc (
>         Object         : in out Derive1;  -- was Base
>         Object2        : in out Base'Class) ;
> and then you declare another procedure, with a different second parameter,
>     procedure Some_Proc (
>         Object         : in out Derive1;
>         Object2        : in out Derive1'Class) ;
> now which is
>         Root.Child1.Some_Proc (
>             Object     => Root.Child1.Derive1 (Object),
>             Object2    => Object2) ;  -- in Derive1'Class and Base'Class
> supposed to be calling?

        Root.Child1.Some_Proc (
            Object     => Root.Child1.Derive1 (Object),
            Object2    => Root.Base'Class (Object2)) ;

compiles OK (GNAT 3.14a)



  reply	other threads:[~2001-08-15  6:17 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-14 15:14 Ambiguous reference - What is wrong with this? Marin David Condic
2001-08-14 16:56 ` Warren W. Gay VE3WWG
2001-08-14 17:45   ` Warren W. Gay VE3WWG
2001-08-14 17:54   ` Marin David Condic
2001-08-14 19:24     ` Warren W. Gay VE3WWG
2001-08-14 17:44 ` Sergey Koshcheyev
2001-08-14 20:10   ` Marin David Condic
2001-08-15  7:38     ` Sergey Koshcheyev
2001-08-15 13:49       ` Marin David Condic
2001-08-14 20:02 ` tmoran
2001-08-15  6:17   ` Simon Wright [this message]
2001-08-17 16:34     ` Marin David Condic
replies disabled

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