From: Adam Beneschan <adam@irvine.com>
Subject: Re: Vector (container) initialization: the schizophrenic ampersand
Date: Mon, 21 May 2012 10:57:25 -0700 (PDT)
Date: 2012-05-21T10:57:25-07:00 [thread overview]
Message-ID: <131894e6-ba06-434c-84a3-f0fccfba5d14@googlegroups.com> (raw)
In-Reply-To: <wccehqd4g9t.fsf@shell01.TheWorld.com>
On Monday, May 21, 2012 10:04:30 AM UTC-7, Robert A Duff wrote:
> Adam Beneschan writes:
>
> > 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.
>
> Hmm. You're probably right. I'm not sure, because I haven't
> seen what "&" operators we're talking about, nor what
> the context is (is the concatenation assigned into
> a variable, passed to an overloaded procedure, ...?).
"T" is the Vector type from an instance of Ada.Containers.Vectors. The & operators are also from the instance and have been made directly visible with "use". The & operators can take all four combinations of Element&Element, Element&Vector, Vector&Element, Vector&Vector.
-- Adam
next prev parent reply other threads:[~2012-05-21 18:00 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-17 20:20 Vector (container) initialization: the schizophrenic ampersand Marius Amado-Alves
2012-05-17 20:24 ` Jeffrey Carter
2012-05-17 20:26 ` Pascal Obry
2012-05-17 23:33 ` Adam Beneschan
2012-05-18 6:34 ` Marius Amado-Alves
2012-05-18 6:51 ` Marius Amado-Alves
2012-05-18 13:31 ` Robert A Duff
2012-05-18 18:55 ` Shark8
2012-05-18 22:44 ` Robert A Duff
2012-05-19 9:03 ` Marius Amado-Alves
2012-05-19 16:15 ` Robert A Duff
2012-05-21 16:02 ` Adam Beneschan
2012-05-21 17:04 ` Robert A Duff
2012-05-21 17:57 ` Adam Beneschan [this message]
2012-05-21 15:57 ` Adam Beneschan
2012-05-19 9:28 ` Dmitry A. Kazakov
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox