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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,2f7ef46127892c41 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,UTF8 Received: by 10.66.85.164 with SMTP id i4mr1333558paz.21.1343262873489; Wed, 25 Jul 2012 17:34:33 -0700 (PDT) Path: b9ni59944966pbl.0!nntp.google.com!border1.nntp.dca.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!ctu-peer!news.nctu.edu.tw!goblin1!goblin.stu.neva.ru!feeds.phibee-telecom.net!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!gegeweb.org!aioe.org!.POSTED!not-for-mail From: "Vasiliy Molostov" Newsgroups: comp.lang.ada Subject: Re: Little people supporting Ada, possibly through AdaCore? Date: Thu, 19 Jul 2012 00:57:42 +0400 Organization: None Message-ID: References: <12955589.960.1336138013614.JavaMail.geo-discussion-forums@vbbfk16> <5043095.1117.1336142172111.JavaMail.geo-discussion-forums@vbli11> <2d7fae9a-5be7-4011-a945-5ecd95684025@googlegroups.com> <949570cd-bdda-49ff-93c7-5189546adf7a@googlegroups.com> <5004ff62$0$293$14726298@news.sunsite.dk> NNTP-Posting-Host: Xw13RWgh8yxgPSv0x3+H9w.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/12.00 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable Date: 2012-07-19T00:57:42+04:00 List-Id: Dmitry A. Kazakov =D0=BF=D0=B8=D1=81=D0=B0=D0= =BB(=D0=B0) =D0=B2 =D1=81=D0=B2=D0=BE=D1=91=D0=BC =D0=BF=D0=B8=D1=81=D1=8C= =D0=BC=D0=B5 Wed, = 18 Jul 2012 21:14:35 +0400: > On Wed, 18 Jul 2012 06:33:34 -0700 (PDT), Marc C wrote: > >> An "unordered" set is an *unordered* set. It is inappropriate to expe= ct >> any kind of intrinsic or 'order of insertion' ordering of elements i= n >> such a set. > > True. However a set of truly unordered elements cannot be implemented > otherwise than on top of an ordered set. E.g. to be able to implement > membership test. Either the container imposes some order on the elemen= ts = > or > else the elements have some arbitrary order. how about the following: type Unordered_Set is record null; end; type Unordered_Element (Belongs_to: access Unordered_Set)is record null; -- data end; elements has no order between each other, except membership itself, and = a = set has no ordering of elements also. The membership test is very simple here: (element.belongs_to =3D = unordered'access) -- = ps. perhaps this pseudo code is not ada, but adaptable well, i think.