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=0.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,672b169dc220673a X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.191.225 with SMTP id hb1mr11187112pbc.5.1337286299746; Thu, 17 May 2012 13:24:59 -0700 (PDT) Path: pr3ni10424pbb.0!nntp.google.com!news2.google.com!news.glorb.com!newsgate.cuhk.edu.hk!news.netfront.net!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: Vector (container) initialization: the schizophrenic ampersand Date: Thu, 17 May 2012 13:24:54 -0700 Organization: Also freenews.netfront.net; news.tornevall.net Message-ID: References: <10616734.43.1337286031745.JavaMail.geo-discussion-forums@vbjy7> NNTP-Posting-Host: 184.20.60.36 Mime-Version: 1.0 X-Trace: adenine.netfront.net 1337286299 88765 184.20.60.36 (17 May 2012 20:24:59 GMT) X-Complaints-To: news@netfront.net NNTP-Posting-Date: Thu, 17 May 2012 20:24:59 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux i686; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 In-Reply-To: <10616734.43.1337286031745.JavaMail.geo-discussion-forums@vbjy7> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Date: 2012-05-17T13:24:54-07:00 List-Id: On 05/17/2012 01:20 PM, Marius Amado-Alves wrote: > Shouldn't this be the right idiom to initialize a vector (container) with > literals: > > use My_Vectors; V : My_Vectors.Vector := Element1& Element2& Element3; > > Looks nice, but does not compile (with GNAT), because the compiler cannot > make a decision on which "&" function to use where. Is there a way to give > precedence to one of the"&" functions? Or some other nice solution? Thanks. Does using parentheses help? V : Vector := (E1 & E2) & E3; -- Jeff Carter Just as Khan was hindered by two-dimensional thinking in a three-dimensional situation, so many developers are hindered by sequential thinking in concurrent situations. 118 --- Posted via news://freenews.netfront.net/ - Complaints to news@netfront.net ---