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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,86cefd3e84a541f2 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-02-18 14:56:05 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!news.gtei.net!newscon02.news.prodigy.com!newsmst01.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr14.news.prodigy.com.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Parallel Merge Sort References: X-Newsreader: Tom's custom newsreader Message-ID: NNTP-Posting-Host: 67.115.104.211 X-Complaints-To: abuse@prodigy.net X-Trace: newssvr14.news.prodigy.com 1014072911 ST000 67.115.104.211 (Mon, 18 Feb 2002 17:55:11 EST) NNTP-Posting-Date: Mon, 18 Feb 2002 17:55:11 EST Organization: Prodigy Internet http://www.prodigy.com X-UserInfo1: Q[R_PJONAJUMB_LY@BCBNWX@RJ_XPDLMN@GZ_GYO^JWTEPIB_NVUAH_[BL[\IRKIANGGJBFNJF_DOLSCENSY^U@FRFUEXR@KFXYDBPWBCDQJA@X_DCBHXR[C@\EOKCJLED_SZ@RMWYXYWE_P@\\GOIW^@SYFFSWHFIXMADO@^[ADPRPETLBJ]RDGENSKQQZN Date: Mon, 18 Feb 2002 22:55:11 GMT Xref: archiver1.google.com comp.lang.ada:20116 Date: 2002-02-18T22:55:11+00:00 List-Id: Your Sort_Package declares an array type that it knows how to sort, which means that anyone using it must use its array type. Take a look at Barnes' "Programming in Ada 95", 2nd edition, p. 396, or "A generic sorting procedure" in John English's "Ada 95 The Craft of Object-Oriented Programming" (online via www.adapower.com) where they take the more general approach of passing in the array type as a parameter: generic type Index is (<>); type Item is private; type Collection is array(Index range <>) of Item; with function "<"(X,Y:Item) return Boolean; procedure Sort(C : in out Collection);