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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,dbc107ec93ffaf80,start 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!diablo.voicenet.com!wesley.videotron.net!wagner.videotron.net.POSTED!not-for-mail Newsgroups: comp.lang.ada Subject: Multilists X-Newsreader: WinVN 0.99.9 (Released Version) (16bit) From: Spamguard@yahoo.com (Alex Strabismus) Organization: -- MIME-Version: 1.0 Content-Type: Text/Plain; charset=US-ASCII Message-ID: Date: Wed, 04 Aug 2004 12:40:50 GMT NNTP-Posting-Host: 24.37.235.48 X-Complaints-To: abuse@videotron.ca X-Trace: wagner.videotron.net 1091623250 24.37.235.48 (Wed, 04 Aug 2004 08:40:50 EDT) NNTP-Posting-Date: Wed, 04 Aug 2004 08:40:50 EDT Xref: g2news1.google.com comp.lang.ada:2530 Date: 2004-08-04T12:40:50+00:00 List-Id: Hello -- I have a list of clients that I need to be kept sorted IN MEMORY by primary key and secondary keys. ID: 1 Name: Bob Quintal AmountDue: 432 ID: 2 Name: Alex Strabismus AmountDue: 321 So say I throw in the command Display(ID), it displays by ID, as you see in the example, above. However, Display (Name) will display the list in alphabetic order, starting with Alex Strabismus. The same for Display (AmountDue), since 321<432. My idea is to insert in a list, with three pointers-->next for each data type: After each insertion into the list, the program comes up with a proper pointer. Ex: Insert: ID: 1 Name: Bob Quintal AmountDue: 432 1 points to nothing Bob Quintal points to nothing Amount Due points to nothing. Insert: ID: 2 Name: Alex Strabismus AmountDue: 321 2 points to nothing Alex Strabismus points to Bob Quintal 321 points to 432 Do you have any examples of this -- packages WITH implementation? Is this a 'multimap' or 'multilist'? Make sure to provide an example with a RECORD type, as above. I am new to ADA and will not be able to correlate, say, an example using plain integers. Thanks! Alex Strabismus Montreal, Canada