comp.lang.ada
 help / color / mirror / Atom feed
From: "Adam Beneschan" <adam@irvine.com>
Subject: Re: Equivalent keys/elements in Ada.Containers Maps and Sets
Date: 24 Jan 2007 18:22:40 -0800
Date: 2007-01-24T18:22:40-08:00	[thread overview]
Message-ID: <1169691760.029031.54630@s48g2000cws.googlegroups.com> (raw)
In-Reply-To: <1169679017.011443.231540@q2g2000cwa.googlegroups.com>



On Jan 24, 2:50 pm, "Matthew Heaney" <mhea...@on2.com> wrote:

> This is a silly argument.  The Ada container library is modeled on the
> C++ STL, and in that library the requirement for "strict weak ordering"
> for the binary predicate for ordered associative containers is clear.
>
> Whatever putative difficulties Ada programmers have defining a
> less-than operator for instantiating a generic container, that is no
> different from the same problems C++ programmers would have defining a
> binary predicate for instantiating a container template.  Yet somehow,
> some way, thousands of C++ programmers have managed to instantiate
> their container templates without any problems.  I hope you're not
> suggesting that C++ programmers are smarter than Ada programmers!

No, of course not.  But I guess I am suggesting that the Ada
programming community expects the RM to be correct.  The idea that we
should let the RM say something is correct when it isn't, because
nobody will ever do it wrong anyway, isn't the Ada way.  That sounds
more like the C way.  The same "C way" that says "We don't need to
check our input for sanity because nobody will enter insane input
anyway."  "We don't need to check for buffer overflow because no data
is going to be that large anyway."  Or maybe that's the Microsoft
way---I don't know.  But I think our standards are higher than that.

> Ambiguities in the Ada RM happen all the time, that's why we have an
> ARG.   There's nothing special about (assumed) ambiguity in the
> requirement for strict weak ordering.

But there's no ambiguity in the RM.  The RM's requirements for the "<"
function are unambiguous.  Wrong, but unambiguous.

                     -- Adam




  reply	other threads:[~2007-01-25  2:22 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-23 12:56 Equivalent keys/elements in Ada.Containers Maps and Sets Niklas Holsti
2007-01-23 15:45 ` Matthew Heaney
2007-01-23 16:47   ` Matthew Heaney
2007-01-23 23:04   ` Niklas Holsti
2007-01-24  0:43     ` Randy Brukardt
2007-01-24  7:52       ` Niklas Holsti
2007-01-24 21:06         ` Randy Brukardt
2007-01-24 16:50       ` Matthew Heaney
2007-01-24 21:18         ` Randy Brukardt
2007-01-24 21:27           ` Adam Beneschan
2007-01-24 22:50             ` Matthew Heaney
2007-01-25  2:22               ` Adam Beneschan [this message]
2007-01-26  0:08                 ` Georg Bauhaus
2007-01-24 20:56       ` Adam Beneschan
2007-01-24 20:57         ` Adam Beneschan
2007-01-24 22:56         ` Matthew Heaney
2007-01-25  0:44           ` Randy Brukardt
2007-01-24 16:11     ` Matthew Heaney
2007-01-24 18:12       ` Niklas Holsti
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox