comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <rm.dash-bauhaus@futureapps.de>
Subject: Re: Ambiguous expressions - Help!
Date: Tue, 24 Sep 2013 23:08:17 +0200
Date: 2013-09-24T23:08:17+02:00	[thread overview]
Message-ID: <5241ff41$0$6643$9b4e6d93@newsspool2.arcor-online.net> (raw)
In-Reply-To: <L3+qKwCa4cQSFwx2@ada-augusta.demon.co.uk>

On 24.09.13 19:38, Mike H wrote:

> procedure Foo3 is
>     Foo_thing : Vector_type;
> begin
> ... etc.
>     Foo2.Put_line (Foo_thing);
> ... etc.
>     Foo2.Put_line ("Something else");
> ... etc.
> end Foo3;
>
> Compilation of Foo3 raises error messages of the form "ambiguous
> expression (cannot resolve "Put_line")

"Something else" is a literal of either type.
Putting a qualifying type name in front removes the ambiguity,

   Put_line (String'("Something else"));


  parent reply	other threads:[~2013-09-24 21:08 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-24 17:38 Ambiguous expressions - Help! Mike H
2013-09-24 18:15 ` Eryndlia Mavourneen
2013-09-24 18:43   ` Adam Beneschan
2013-09-24 20:34     ` Robert A Duff
2013-09-24 18:37 ` Jeffrey Carter
2013-09-24 21:08 ` Georg Bauhaus [this message]
2013-09-25  7:14 ` Mike H
replies disabled

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