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.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,bf0a6e5321bcc595 X-Google-Attributes: gid103376,public From: Tom Moran Subject: Re: passing pointer of different type to one procedure Date: 1997/04/17 Message-ID: <335645C8.788E@bix.com>#1/1 X-Deja-AN: 235498141 References: <01bc4a80$713ca380$52bd0c26@cat> <33555ECA.44A8@bix.com> <01bc4ad3$f3702860$6aba0c26@cat> Organization: InterNex Information Services 1-800-595-3333 Reply-To: tmoran@bix.com Newsgroups: comp.lang.ada Date: 1997-04-17T00:00:00+00:00 List-Id: I don't understand. If you have 10 records of differing structure, you clearly will need to have 10 different compare procedures. Is this not the situation? It's really the compare's that need to be different. 10 instantiations of a generic sort routine is hardly a significant cost. You can make the records the same (for purposes of the compare and sort) by having a record which contains a key (big enough for any data) and a pointer to the actual data, or an index into an array or file. Is that what you want to do?