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: a07f3367d7,7b6305d0d57a9f34 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.204.38.195 with SMTP id c3mr461259bke.8.1319918414747; Sat, 29 Oct 2011 13:00:14 -0700 (PDT) MIME-Version: 1.0 Path: l23ni17971bkv.0!nntp.google.com!news2.google.com!news.glorb.com!feeder.erje.net!feeder.news-service.com!aioe.org!.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Normalizing array indices Date: Sat, 29 Oct 2011 19:58:29 +0000 (UTC) Organization: Aioe.org NNTP Server Message-ID: References: NNTP-Posting-Host: Lf0Nl3CcQzx+ocHx9cmuGg.user.speranza.aioe.org X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: Tom's custom newsreader Xref: news2.google.com comp.lang.ada:14238 Date: 2011-10-29T19:58:29+00:00 List-Id: > > generic > > type Element_Type is private; > > type Sort_Array_Type is array (Positive range<>) of Element_Type; > > with function "<" (Left, Right: Element_Type) return Boolean is<>; > > procedure Sort(A: in out Sort_Array_Type) How about with function Earlier (Left, Right: Element_Type) return Boolean is<>; Otherwise one gets oddities like procedure Sort_Decreasing is new Sort(..., "<" => ">");