comp.lang.ada
 help / color / mirror / Atom feed
From: jsa@organon.com (Jon S Anthony)
Subject: Re: package scope
Date: 1996/06/19
Date: 1996-06-19T00:00:00+00:00	[thread overview]
Message-ID: <JSA.96Jun19123618@organon.com> (raw)
In-Reply-To: 01bb5da3.995bc000$33668acd@iris.gomontana.com


In article <01bb5da3.995bc000$33668acd@iris.gomontana.com> "Darrin" <darrin@gomontana.com> writes:

> Can any of you help on this one?  I have a generic package for link lists
> and  a package for reading and displaying a group of records from a text
> file.  What I have done is instantiate the linked list in my record
> package and then USE'd the record package in my main procedure.  Problem
> is, the main procedure won't recognize a variable of a type declared in
> the generic package without using the dot notation.  This seems to be a
> redundant necessity, since I am USE'ing the pakage.  Thanks for any and
> all help.

If I understand correctly, you have something like:

with List_Generic;
package Rec is
...
    package P is new List_Generic(...);
...
end Rec;

with Rec;  use Rec;
procedure Main is
...
--    have to use P.Blah to access stuff in P
--    Well, that is because you have not _use_ed
--    P!:

    use P;

    -- Now just use Blah:
    --
    Blah(...);

end Main;

/Jon
-- 
Jon Anthony
Organon Motives, Inc.
1 Williston Road, Suite 4
Belmont, MA 02178

617.484.3383
jsa@organon.com





      reply	other threads:[~1996-06-19  0:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-06-18  0:00 package scope Darrin
1996-06-19  0:00 ` Jon S Anthony [this message]
replies disabled

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