From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5037bf0bb33408c8 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-08 07:01:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!news-FFM2.ecrc.net!news.cesnet.cz!crax.cesnet.cz!news.felk.cvut.cz!not-for-mail From: "Sergey Koshcheyev" Newsgroups: comp.lang.ada Subject: Re: "&" for array versus "&" for Strings Date: Tue, 8 Oct 2002 15:56:42 +0200 Organization: Czech Technical University Message-ID: References: <200210081153.NAA17399@bulgaria.otn.eurocopter.de> NNTP-Posting-Host: m232.dkm.cz X-Trace: ns.felk.cvut.cz 1034085400 96314 62.24.78.232 (8 Oct 2002 13:56:40 GMT) X-Complaints-To: usenet@ns.felk.cvut.cz NNTP-Posting-Date: Tue, 8 Oct 2002 13:56:40 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Xref: archiver1.google.com comp.lang.ada:29586 Date: 2002-10-08T15:56:42+02:00 List-Id: "David C. Hoos, Sr." 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. > 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. Sergey.