comp.lang.ada
 help / color / mirror / Atom feed
* Can you use arrays from another package ?
@ 2002-05-21 22:28 Jon
  2002-05-21 23:31 ` tmoran
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Jon @ 2002-05-21 22:28 UTC (permalink / raw)


say the main program is calle MAIN.ADB

and uses 2 packages X and Y

if there is an array of records in X called A.

how do i use the array A in Y ?

e.g

package body X is
    type R is record
        hi : string;
        bye : integer;
    end record;

    A : array(1..10) of R;

end X;


now in Y, how do i use that array ? ive tried this :

package body Y is

    get( X.A(1).hi );

end Y;


but it doesnt work, does anyone know how to do it ?


thanks






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

end of thread, other threads:[~2002-06-01 11:19 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-21 22:28 Can you use arrays from another package ? Jon
2002-05-21 23:31 ` tmoran
2002-05-21 23:37 ` Dale Stanbrough
2002-05-22  1:47   ` Jeffrey Carter
2002-05-22  6:13   ` Adrian Hoe
2002-05-22  1:52 ` Robert Dewar
2002-05-22 12:11   ` Jon
2002-05-22 12:36     ` Preben Randhol
2002-05-22 15:16       ` Jon
2002-05-22 19:17         ` Preben Randhol
2002-05-22 22:22       ` Robert Dewar
2002-05-24  4:17         ` Richard Riehle
2002-05-24 13:41           ` Larry Kilgallen
2002-06-01 11:19           ` Georg Bauhaus
2002-05-24 10:07         ` John English

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