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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,4ea86b01a068c433 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.230.98 with SMTP id sx2mr1833099pbc.1.1336031844793; Thu, 03 May 2012 00:57:24 -0700 (PDT) Path: r9ni126515pbh.0!nntp.google.com!news1.google.com!news.glorb.com!feeder.erje.net!news.mixmin.net!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Container for access values. Date: Thu, 3 May 2012 09:56:26 +0200 Organization: cbb software GmbH Message-ID: <1jcixvrl3xzx3.sq8hyo061vab$.dlg@40tude.net> References: <3000608.845.1336028922599.JavaMail.geo-discussion-forums@vbvx4> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: FbOMkhMtVLVmu7IwBnt1tw.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2012-05-03T09:56:26+02:00 List-Id: On Thu, 3 May 2012 00:08:42 -0700 (PDT), David Pettersson wrote: > If I try Ordered_Sets there is no "<" defined for access and I have to > define it myself in the same manner as hash value. Why? If the set does not use hash table, you don't need to worry about how "<" is implemented, if the axiomatic properties of the order relation are respected. If the machine memory is flat, you can compare addresses. I have a small generic package to generate access comparisons from addresses: http://www.dmitry-kazakov.de/ada/components.htm#15.1 -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de