comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: passing pointer of different type to one procedure
Date: 1997/04/19
Date: 1997-04-19T00:00:00+00:00	[thread overview]
Message-ID: <dewar.861502808@merv> (raw)
In-Reply-To: 33568C14.4337@boeing.com


John said

<<Perhaps you could create records as a class hierarchy of tagged types,
then pass a class-wide pointer to your sort routine.>>

There have been several suggestions which involve changing the data
(using variant records, using tagged types ...)

but surely the desire is to sort different unrelated data with the same
shared program.

And it seems to be that the approach with access procedures that is
in g-hesora in the GNAT library seems by far the most straight
forward approach. We use this in the compiler itself for sorting all
kinds of different data, with shared common code.





  reply	other threads:[~1997-04-19  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
1997-04-17  0:00 ` John Harbaugh
1997-04-19  0:00   ` Robert Dewar [this message]
     [not found] ` <33555ECA.44A8@bix.com>
     [not found]   ` <01bc4ad3$f3702860$6aba0c26@cat>
1997-04-17  0:00     ` Tom Moran
1997-04-17  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