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.234.71 with SMTP id uc7mr467878pbc.3.1336034477153; Thu, 03 May 2012 01:41:17 -0700 (PDT) Path: r9ni126636pbh.0!nntp.google.com!news1.google.com!news2.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 10:40:18 +0200 Organization: cbb software GmbH Message-ID: <1z6q1ozdu121$.1fo9qmoh5livg$.dlg@40tude.net> References: <3000608.845.1336028922599.JavaMail.geo-discussion-forums@vbvx4> <9057885.637.1336033565315.JavaMail.geo-discussion-forums@vbq19> 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-03T10:40:18+02:00 List-Id: On Thu, 3 May 2012 01:26:05 -0700 (PDT), David Pettersson wrote: > So "<" is defined for addresses but not for accesses. So all I have to do > is to take the address of the accesses' targets and compare them. Don't forget checking for null: return Ptr (Right) /= null and then (Ptr (Left) = null or else Left.all'Address < Right.all'Address); -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de