comp.lang.ada
 help / color / mirror / Atom feed
* Unconstrained Array ??
@ 1999-08-10  0:00 Duncan Woodward
  1999-08-10  0:00 ` David C. Hoos, Sr.
  1999-08-10  0:00 ` Stephen Leake
  0 siblings, 2 replies; 3+ messages in thread
From: Duncan Woodward @ 1999-08-10  0:00 UTC (permalink / raw)


hi;
I want to create a package that handles actions upon
a multi dimensional unconstrained array.

It is likely that I've approached this problem from the
wrong direction, but this is where I'm at..

package array_Handler is

type Container_Matrix is array(POSITIVE range <>,
                                            POSITIVE range <>,
                                            POSITIVE range <>) of Boolean;

procedure1 Set_Container_Size(x,y,z:Integer);

                -- this procedure takes in the three axis values for
                -- the array index ranges.
                -- Creates instance of Container_Matrix using parameters
                -- x,y,z.

procedure2 ...etc
procedure3 ...etc

end array_Handler;

PROBLEM: How do I create an instance of type Container_Matrix
that is visible to all procedures in the package.

A single global declaration would be fine if the array sizes were know
in advance!

Any ideas please?

Duncan RD.







^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1999-08-10  0:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-08-10  0:00 Unconstrained Array ?? Duncan Woodward
1999-08-10  0:00 ` David C. Hoos, Sr.
1999-08-10  0:00 ` Stephen Leake

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