From: mheaney@on2.com (Matthew Heaney)
Subject: Re: Adding "()" operator to Ada 200X
Date: 4 Jun 2003 10:28:39 -0700
Date: 2003-06-04T17:28:39+00:00 [thread overview]
Message-ID: <1ec946d1.0306040928.6eb47667@posting.google.com> (raw)
In-Reply-To: 1325634.ddflWlv0t0@linux1.krischik.com
Martin Krischik <krischik@users.sourceforge.net> wrote in message news:<1325634.ddflWlv0t0@linux1.krischik.com>...
>
> I agree with your point and put my vote in favour of the O.P.: An array
> operator would make collection classes much nicer.
The problem is what type to return. In C++ I do this:
T& operator[]();
const T& operator[]() const;
The operator returns a reference to T. There are no reference types
in Ada, so it's not obvious how the language would be able to provide
it.
next prev parent reply other threads:[~2003-06-04 17:28 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-02 16:35 Adding "()" operator to Ada 200X Frank J. Lhota
2003-06-02 23:42 ` Matthew Heaney
2003-06-03 14:59 ` Frank J. Lhota
2003-06-03 15:09 ` Frank J. Lhota
2003-06-03 16:04 ` Martin Krischik
2003-06-04 17:28 ` Matthew Heaney [this message]
2003-06-04 18:21 ` Frank J. Lhota
2003-06-05 1:15 ` Robert I. Eachus
2003-06-05 14:59 ` Frank J. Lhota
2003-06-05 17:25 ` Matthew Heaney
2003-06-03 20:24 ` Randy Brukardt
2003-06-03 19:52 ` Francisco Javier Loma Daza
2003-06-03 2:56 ` Fionn mac Cuimhaill
2003-06-03 14:02 ` Matthew Heaney
2003-06-03 16:23 ` Mário Amado Alves
2003-06-05 19:02 ` Dmitry A. Kazakov
2003-06-06 10:56 ` Mário Amado Alves
2003-06-06 16:55 ` Chad R. Meiners
2003-06-06 19:01 ` Frank J. Lhota
2003-06-09 14:15 ` Matthew Heaney
2003-06-07 8:36 ` 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