comp.lang.ada
 help / color / mirror / Atom feed
From: "M. A. Alves" <maa@liacc.up.pt>
To: comp.lang.ada@ada.eu.org
Subject: Re: How to desambiguate?
Date: Wed, 4 Jul 2001 15:03:35 +0000 (GMT)
Date: 2001-07-04T15:03:35+00:00	[thread overview]
Message-ID: <mailman.994255506.16388.comp.lang.ada@ada.eu.org> (raw)
In-Reply-To: <Pine.LNX.4.21.0107041449260.3744-100000@www.niaad.liacc.up.pt>

(Answering my self.)

> Consider the subprograms
> 
>   procedure A(X: in T1);
>   procedure A(X: in T2);
>   function B return T1;
>   function B return T2;
> 
> The call
> 
>   A(B);
> 
> is of course ambiguous (and will therefore not compile).
> 
> How does one desambiguate?  (Assume I want to call the B returning T1.)

  A(T1'(B)); -- Cf. ARM 6.4 (30)

-- 
   ,
 M A R I O   data miner, LIACC, room 221   tel 351+226078830, ext 121
 A M A D O   Rua Campo Alegre, 823         fax 351+226003654
 A L V E S   P-4150 PORTO, Portugal        mob 351+939354002




  parent reply	other threads:[~2001-07-04 15:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Pine.LNX.4.21.0107041449260.3744-100000@www.niaad.liacc.up.pt>
2001-07-04 14:00 ` How to desambiguate? Samuel Tardieu
2001-07-04 15:03 ` M. A. Alves [this message]
2001-07-04 14:55 M. A. Alves
replies disabled

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