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 autolearn=ham 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.195.165 with SMTP id if5mr23660207pbc.1.1337616221753; Mon, 21 May 2012 09:03:41 -0700 (PDT) Path: pr3ni21139pbb.0!nntp.google.com!news1.google.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: Adam Beneschan Newsgroups: comp.lang.ada Subject: Re: Vector (container) initialization: the schizophrenic ampersand Date: Mon, 21 May 2012 09:02:27 -0700 (PDT) Organization: http://groups.google.com Message-ID: <890b49f0-ae6d-4807-8ca3-4c4b98ca7ed6@googlegroups.com> References: <10616734.43.1337286031745.JavaMail.geo-discussion-forums@vbjy7> <70510fa1-e554-44a7-9364-e745674c1bda@googlegroups.com> <28845c63-b06c-4ac2-b5d5-e408c0ff4b7f@googlegroups.com> <70817af5-96c3-4ca7-8d1c-b7635452bf4c@googlegroups.com> NNTP-Posting-Host: 66.126.103.122 Mime-Version: 1.0 X-Trace: posting.google.com 1337616148 30392 127.0.0.1 (21 May 2012 16:02:28 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 21 May 2012 16:02:28 +0000 (UTC) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=66.126.103.122; posting-account=duW0ogkAAABjRdnxgLGXDfna0Gc6XqmQ User-Agent: G2/1.0 Content-Type: text/plain; charset=ISO-8859-1 Date: 2012-05-21T09:02:27-07:00 List-Id: On Saturday, May 19, 2012 9:15:44 AM UTC-7, Robert A Duff wrote: > You don't need to qualify everything. Just enough to disambiguate. > I don't know what operators are visible in this example, > nor what the context is, but this should work: > > T'(Element1 & Element2 & Element3) Sorry, it won't work. Assume all the elements have some array type Arr. Syntactically, the above is equivalent to Vector'((Element1 & Element2) & Element3) before any overload resolution is done. The compiler still cannot tell whether the above means Vector'(Arr'(Element1 & Element2) & Element3) or Vector'(Vector'(Element1 & Element2) & Element3) So it's still ambiguous. -- Adam