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: 103376,b4d97e72cfb44d68 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!news.zanker.org!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!tiscali!newsfeed1.ip.tiscali.net!feed.news.tiscali.de!news.belwue.de!news.uni-stuttgart.de!carbon.eu.sun.com!btnet-feed5!btnet!news.btopenworld.com!not-for-mail From: "Martin Dowie" Newsgroups: comp.lang.ada Subject: Re: List Sorting Date: Sat, 31 Jul 2004 17:10:33 +0000 (UTC) Organization: BT Openworld Message-ID: References: <9RqOc.29970$Vp1.466542@weber.videotron.net> NNTP-Posting-Host: host81-152-56-147.range81-152.btcentralplus.com X-Trace: hercules.btinternet.com 1091293833 25178 81.152.56.147 (31 Jul 2004 17:10:33 GMT) X-Complaints-To: news-complaints@lists.btinternet.com NNTP-Posting-Date: Sat, 31 Jul 2004 17:10:33 +0000 (UTC) X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MSMail-Priority: Normal X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Xref: g2news1.google.com comp.lang.ada:2473 Date: 2004-07-31T17:10:33+00:00 List-Id: "Randy Brukardt" wrote in message news:OOKdnbsVtdt6O5fc4p2dnA@megapath.net... > "Papa Hemingway" wrote in message > news:9RqOc.29970$Vp1.466542@weber.videotron.net... > > Hello. Does anyone have any examples of this -- maintaining the list > order > > directly without using search algorithms afterwards? I'm looking to add > RECORD > > items to a list and maintain the latter ORDERED. > > This sounds like a homework problem. We don't do people's homework for them. > > If it's not a homework problem, you should explain in a bit more detail what > it is that you're trying to do. Without that information, all I can do is > suggest that you don't worry about it and use a container to do the dirty > work, like the Sorted_Sets container that will be part of Ada 200Y. (There > is a reference implementation available at > http://charles.tigris.org/source/browse/charles/src/ai302/ You'll need an Ada0Y compiler to use that version and I don't know of many of those kicking around yet! :-) If you email me direct, I can supply you with an Ada95 version of this package. Or, if you can wait, it'll get put up on my web site sometime this weekend hopefully. Cheers -- Martin