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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d46d23ef29cdbd30 X-Google-Attributes: gid103376,public From: robert_dewar@my-dejanews.com Subject: Re: newbie question Date: 1999/03/19 Message-ID: <7csokj$4vg$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 456371155 References: <36F039F8.275E7145@hknet.com> X-Http-Proxy: 1.0 x7.dejanews.com:80 (Squid/1.1.22) for client 166.72.95.142 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Fri Mar 19 05:51:18 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-03-19T00:00:00+00:00 List-Id: In article <36F039F8.275E7145@hknet.com>, Kenneth Lee wrote: > just switched to Ada a few days. > can someone show me how can i have a universal sort > routine > to sort arrays of integer and float? or even strings? > i tried to implement such a generic unit, but failed coz > i'm really new to Ada :P Have a look at g-busorg.ads/b and g-busora.ads/b in the GNAT library, to see two ways of achieving this kind of genericity. -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own