comp.lang.ada
 help / color / mirror / Atom feed
From: Tom Moran <tmoran@bix.com>
Subject: Re: passing pointer of different type to one procedure
Date: 1997/04/17
Date: 1997-04-17T00:00:00+00:00	[thread overview]
Message-ID: <335645C8.788E@bix.com> (raw)
In-Reply-To: 01bc4ad3$f3702860$6aba0c26@cat


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?




  parent reply	other threads:[~1997-04-17  0:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-04-16  0:00 passing pointer of different type to one procedure Boaz
     [not found] ` <33555ECA.44A8@bix.com>
     [not found]   ` <01bc4ad3$f3702860$6aba0c26@cat>
1997-04-17  0:00     ` Tom Moran [this message]
1997-04-17  0:00   ` Robert Dewar
1997-04-17  0:00 ` John Harbaugh
1997-04-19  0:00   ` Robert Dewar
1997-04-18  0:00 ` Mark & Zurima McKinney
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox