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=0.6 required=5.0 tests=BAYES_20,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,cef4861efb63efa8,start X-Google-Attributes: gid103376,public From: "Eric Therrien" Subject: Using an array to hold different acces procedure... Date: 1998/05/24 Message-ID: <6k9t86$nuh$1@supernews.com>#1/1 X-Deja-AN: 356133450 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3007.0 X-Complaints-To: newsabuse@supernews.com X-Trace: 896038982 ZCZSLWF4G77BBCDCDC usenet14.supernews.com Organization: All USENET -- http://www.Supernews.com Newsgroups: comp.lang.ada Date: 1998-05-24T00:00:00+00:00 List-Id: Hello, I'm building a multi-chained list and one of the things I wanted to do is to pass a function, for each of the chain, that would be used to evaluate the chain order when inserting (so that each chain are in alphabetical or what ever order it's suppose to be). That is easy I only have to declar it as a type to a access procedure, but the problem come from another "feature" i want. I wanted to use a vector in the list header so that the number of multi-chained element could be declare Generic as well. As you can imagine, each chain aren't of the same type. So that give me the problem that I can't use an array to hold the chain head and the chain "order function" in a record, since I can't fix the type of the acces procedure, to keep it flexible... I was wondering if anyone would have a way or any idea to do it and still preserv the ability to have a variable number of chain head... Thank a lot in advance... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Eric Therrien (Eric@Therrien.net) http://Eric.Therrien.net