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!border1.nntp.dca.giganews.com!nntp.giganews.com!local1.nntp.dca.giganews.com!nntp.megapath.net!news.megapath.net.POSTED!not-for-mail NNTP-Posting-Date: Fri, 30 Jul 2004 14:52:07 -0500 From: "Randy Brukardt" Newsgroups: comp.lang.ada References: <9RqOc.29970$Vp1.466542@weber.videotron.net> Subject: Re: List Sorting Date: Fri, 30 Jul 2004 14:52:42 -0500 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 Message-ID: NNTP-Posting-Host: 64.32.209.38 X-Trace: sv3-X4Vhgf3eJYHSAZfCmM9m+KqVmZ/ov2xNbFqUpyBtFYsLPmH18zZjIITsR6Oqoe6tZWl+kQc/Mewk1yd!m7aQxvdOAG6grNt2rwAZwiJvg6Z0AYWFTg6uQ0Xf0C1yXZMEChsvuKpOF/089nDgBzcMp+DUDiEO X-Complaints-To: abuse@megapath.net X-DMCA-Complaints-To: abuse@megapath.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.13 Xref: g2news1.google.com comp.lang.ada:2465 Date: 2004-07-30T14:52:42-05:00 List-Id: "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/ Randy.