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,229ea0001655d6a2 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!proxad.net!news.in2p3.fr!in2p3.fr!news.ecp.fr!news.jacob-sparre.dk!pnx.dk!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Generic Package Date: Tue, 1 May 2007 14:14:46 -0500 Organization: Jacob's private Usenet server Message-ID: References: <1177539306.952515.222940@s33g2000prh.googlegroups.com> <1177601484.444701.171560@r35g2000prh.googlegroups.com> <9eejm6rqip.fsf@hod.lan.m-e-leypold.de> <19qllkvm6ut42$.1iqo74vjgmsrv$.dlg@40tude.net> <1177801611.10171.32.camel@localhost.localdomain> <1woad6hn9idy2$.6otnwphc1o0h$.dlg@40tude.net> <1177929029.6111.34.camel@localhost> <1177944533.13970.17.camel@localhost> <2aq08qbvw0ym$.1rquampzo7o53.dlg@40tude.net> <1ieq3io2d6nnq$.13818v3y35gnr.dlg@40tude.net> <1178010142.6695.29.camel@localhost.localdomain> <1178026941.16837.88.camel@localhost.localdomain> <1ozvzzh59ebq8$.yeh9do8s3hig$.dlg@40tude.net> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: jacob-sparre.dk 1178046772 19297 69.95.181.76 (1 May 2007 19:12:52 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Tue, 1 May 2007 19:12:52 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1807 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 Xref: g2news1.google.com comp.lang.ada:15440 Date: 2007-05-01T14:14:46-05:00 List-Id: "Dmitry A. Kazakov" wrote in message news:1ozvzzh59ebq8$.yeh9do8s3hig$.dlg@40tude.net... > On Tue, 01 May 2007 15:42:21 +0200, Georg Bauhaus wrote: ... > > Yes, in the sense that the specifics of memory layout and such are > > unknown and irrelevant to the client; in particular, no order needs > > to be specified. > > Apart from obvious uselessness of contracts referencing to the memory > layout, the above is self-contradictory. Memory layout defines an order. It > also is a part of the contract. Hence the interface is ordered. And now all is clear. It is impossible to implement a set with having some form of order. So, for us practitioners, an "unordered set" is simply a set with no defined order. I can see that you are arguing about a idealized set unordered set that cannot actually exist - an abstraction that is irrelevant in practice. No wonder people are confused. There is a reason that Ada.Containers has ordered and hashed sets, but not a mathematically unordered one. That because the latter is impossible to implement without a suboptimal mapping into one of the other forms. The net effect is that even if you could use such a form, you would take a massive performance hit to do so (all operations being O(N)). As such, there is no reason to consider such forms or worry about their properties. Randy.