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.3 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, REPLYTO_WITHOUT_TO_CC autolearn=no 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-09 23:34:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!skynet.be!skynet.be!freenix!enst.fr!not-for-mail From: "Grein, Christoph" Newsgroups: comp.lang.ada Subject: Re: "&" for array versus "&" for Strings Date: Thu, 10 Oct 2002 08:28:21 +0200 (MET DST) Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii X-Trace: avanie.enst.fr 1034231642 90239 137.194.161.2 (10 Oct 2002 06:34:02 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Thu, 10 Oct 2002 06:34:02 +0000 (UTC) Return-Path: X-Authentication-Warning: mail.eurocopter.com: uucp set sender to using -f Content-MD5: 78+W2ZlY/LigPN0HaDcV/A== X-Mailer: dtmail 1.2.1 CDE Version 1.2.1 SunOS 5.6 sun4u sparc Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.13 Precedence: bulk X-Reply-To: "Grein, Christoph" List-Unsubscribe: , List-Id: comp.lang.ada mail<->news gateway List-Post: List-Help: List-Subscribe: , Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:29645 Date: 2002-10-10T08:28:21+02:00 > > Has the OP reported this to ACT? I think he was using Gnat. > > No I haven't. I don't know how to do it. Does anybody have a link to a > document on reporting bugs? But if the bug I see has been changed from > Gnat 3.14p to 3.16w then I think that one need to report the new bug in > Gnat 3.16w? The address to report bugs is report@gnat.com but do not expect reactions if you're not a supported user. But since even in 3.16w it's possibley not OK, send it in anyway. In the program below, only the qualified expressions and array aggregates compile. procedure Preben is type String_Array is array (1 .. 2) of String (1 .. 3); procedure P (X: String_Array) is begin null; end P; S1: String_Array := "Ada" & "C++"; -- not OK S2: String_Array := String'("Ada") & String'("C++"); -- OK S3: String_Array := ("Ada", "C++"); -- OK begin P ("Ada" & "C++"); -- not OK P (String'("Ada") & String'("C++")); -- OK P (("Ada", "C++")); -- OK end Preben;