comp.lang.ada
 help / color / mirror / Atom feed
From: "David C. Hoos" <david.c.hoos.sr@ada95.com>
Subject: Re: "&" for array versus "&" for Strings
Date: Tue, 8 Oct 2002 10:46:39 -0500
Date: 2002-10-08T10:46:39-05:00	[thread overview]
Message-ID: <mailman.1034092022.1154.comp.lang.ada@ada.eu.org> (raw)
In-Reply-To: anuo6n$2u1q$1@ns.felk.cvut.cz


----- Original Message -----
From: "Sergey Koshcheyev" <serko84@hotmail.com>
Newsgroups: comp.lang.ada
To: <comp.lang.ada@ada.eu.org>
Sent: Tuesday, October 08, 2002 8:56 AM
Subject: Re: "&" for array versus "&" for Strings


>
> "David C. Hoos, Sr." <david.c.hoos.sr@ada95.com> wrote in message
> news:mailman.1034079721.26410.comp.lang.ada@ada.eu.org...
> >
> > With gnat-3.14p and qualification it still fails, so it would appear
that
> this
> > is a "bug" fixed in 3.16w.  Clearly, from a language standpoint, it is
> > necessary to disambiguate the & operator in the call to Print_Names, and
> > qualification of its operands does just that.
> > <snip>
>
> How does it disambiguate the "&"? I would understand if it selected
function
> "&" (Left, Right : String) return String, but from what you say, it seems
> like it made the compiler select function "&" (Left, Right : "String (1 ..
> 6)") return Name_Array.
That's correct.  Without the qualification of its operands, the compiler
selects
"&" (Left, Right : String) return String, which (correctly) returns an error
in
3.16w, but is erroneously accepted by 3.14p.
With  the qualification of its operands, the compiler selects
"&" (Left, Right : String (1 .. 6)) return Name_Array.




  reply	other threads:[~2002-10-08 15:46 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200210081153.NAA17399@bulgaria.otn.eurocopter.de>
2002-10-08 12:21 ` "&" for array versus "&" for Strings David C. Hoos, Sr.
2002-10-08 13:56   ` Sergey Koshcheyev
2002-10-08 15:46     ` David C. Hoos [this message]
2002-10-08 15:56       ` Preben Randhol
2002-10-10  6:28 Grein, Christoph
2002-10-10  7:15 ` Preben Randhol
  -- strict thread matches above, loose matches on Subject: below --
2002-10-10  4:35 Grein, Christoph
2002-10-10  6:06 ` Preben Randhol
2002-10-09  9:59 Grein, Christoph
2002-10-09  5:28 Grein, Christoph
2002-10-09 12:43 ` Robert A Duff
2002-10-09 17:38   ` Steven Deller
2002-10-09 19:46     ` Robert A Duff
2002-10-08 11:53 Grein, Christoph
2002-10-08 13:46 ` Preben Randhol
2002-10-08 13:49 ` Preben Randhol
2002-10-08 16:41 ` Robert A Duff
2002-10-09  9:35   ` Preben Randhol
2002-10-08 10:57 Preben Randhol
2002-10-14 16:34 ` Eric G. Miller
2002-10-14 17:54   ` Robert A Duff
replies disabled

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