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,73cb216d191f0fef X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.180.189.209 with SMTP id gk17mr1339359wic.7.1363401673416; Fri, 15 Mar 2013 19:41:13 -0700 (PDT) Path: g1ni68464wig.0!nntp.google.com!feeder1.cambriumusenet.nl!82.197.223.103.MISMATCH!feeder3.cambriumusenet.nl!feed.tweaknews.nl!85.12.40.138.MISMATCH!xlned.com!feeder5.xlned.com!newsfeed10.multikabel.net!multikabel.net!newsfeed20.multikabel.net!news.mi.ras.ru!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!mx05.eternal-september.org!.POSTED!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: Is this expected behavior or not Date: Wed, 13 Mar 2013 14:47:23 -0700 Organization: Also freenews.netfront.net; news.tornevall.net Message-ID: References: <8klywqh2pf$.1f949flc1xeia.dlg@40tude.net> <513f6e2f$0$6572$9b4e6d93@newsspool3.arcor-online.net> <513faaf7$0$6626$9b4e6d93@newsspool2.arcor-online.net> <51408e81$0$6577$9b4e6d93@newsspool3.arcor-online.net> <11rcs3gg4taww$.bylek8fsshyz$.dlg@40tude.net> Mime-Version: 1.0 Injection-Date: Wed, 13 Mar 2013 21:45:46 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="656ea2f23126f57fb36504d2d15a002c"; logging-data="31796"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18LDdaM8LeaZlvkt1kImbLSuDU/+F5d35g=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 In-Reply-To: Cancel-Lock: sha1:V8fTN09aun8ig1BfPQF0W8Uuz2w= Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Date: 2013-03-13T14:47:23-07:00 List-Id: On 03/13/2013 12:54 PM, Simon Wright wrote: > > Out of over 200 packages I have only one with this construct: it is a > signature package, no need for 'Pred or 'Succ (in other words, the > enumeration defines a set of distinct possibilities, ordering > irrelevant). The sorting algorithms in the PragmAda Reusable Components have a generic formal part like generic -- PragmARC.Sort_Heap type Element is private; type Index is (<>); type Sort_Set is array (Index range <>) of Element; with function "<" (Left : Element; Right : Element) return Boolean is <>; procedure PragmARC.Sort_Heap (Set : in out Sort_Set); and use Index'Pred and Index'Succ. -- Jeff Carter "Ah, go away or I'll kill ya." Never Give a Sucker an Even Break 100