comp.lang.ada
 help / color / mirror / Atom feed
* Using an array to hold different acces procedure...
@ 1998-05-24  0:00 Eric Therrien
  0 siblings, 0 replies; only message in thread
From: Eric Therrien @ 1998-05-24  0:00 UTC (permalink / raw)



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







^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-05-24  0:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-05-24  0:00 Using an array to hold different acces procedure Eric Therrien

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